-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathtestfunc.c
70 lines (60 loc) · 860 Bytes
/
testfunc.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
#include <stdlib.h>
int abc()
{
return 3;
}
int three()
{
return 3;
}
int identity(int a)
{
return a;
}
int add(int a, int b)
{
return a + b;
}
int addsix(int a, int b, int c, int d, int e, int f)
{
return a + b + c + d + e + f;
}
int firstarg(int a, int b, int c, int d, int e, int f)
{
return a;
}
int secondarg(int a, int b, int c, int d, int e, int f)
{
return b;
}
int thirdarg(int a, int b, int c, int d, int e, int f)
{
return c;
}
int fourtharg(int a, int b, int c, int d, int e, int f)
{
return d;
}
int fiftharg(int a, int b, int c, int d, int e, int f)
{
return e;
}
int sixtharg(int a, int b, int c, int d, int e, int f)
{
return f;
}
int myglobal = 11;
int *pointerTest()
{
return &myglobal;
}
int allocfour(int **ptr)
{
int *x = calloc(4, sizeof(int));
x[0] = 1;
x[1] = 12;
x[2] = 13;
x[3] = 14;
*ptr = x;
return 0;
}