summaryrefslogtreecommitdiff
path: root/test/test6.c
blob: d9203b2ff977ba6ec11cd84eef94bb58cb822339 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
void func1(int *a);
void func2(int *a);
void func3(int *a);

void func1(int *a)
{
    *a = 100;
}

void func2(int *a)
{
    if (!a)
        return;
    else
        *a = 200;
}

void func3(int *aptr)
{
    if (!aptr)
        return;

    *aptr = 300;
}