summaryrefslogtreecommitdiff
path: root/CSAPP/chap3/main.c
blob: b4f7152bf146961a9d82bf37ed437584295495b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <stdio.h>

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;
}