From d98f46ce647846b0aa30b2e16a30fd4e152a1bf5 Mon Sep 17 00:00:00 2001 From: Carlos Maiolino Date: Thu, 10 Jul 2025 22:55:07 +0200 Subject: Add new code Signed-off-by: Carlos Maiolino --- CSAPP/chap3/main.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 CSAPP/chap3/main.c (limited to 'CSAPP/chap3/main.c') diff --git a/CSAPP/chap3/main.c b/CSAPP/chap3/main.c new file mode 100644 index 0000000..b4f7152 --- /dev/null +++ b/CSAPP/chap3/main.c @@ -0,0 +1,17 @@ +#include + +void multstore(long, long, long*); + +int main(void) +{ + long d; + multstore(2, 3, &d); + printf("2 * 3 --> %ld\n", d); + return 0; +} + +long mult2(long a, long b) +{ + long s = a * b; + return s; +} -- cgit v1.2.3