blob: bc320cffe16862742ffec803a65cb6f2e3ad56a4 (
plain)
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
|
#include <string.h>
#include <stdio.h>
void func_ignore(int a, int b, int c)
{
printf("%d\n", a + b + c);
}
void func_intptr(int *i)
{
printf("%d\n", *i);
}
void func_intptr_ret(int *i)
{
*i = 42;
}
int func_strlen(char* p)
{
strcpy(p, "Hello world");
return strlen(p);
}
void func_strfixed(char* p)
{
strcpy(p, "Hello world");
}
void func_ppp(int*** ppp)
{
printf("%d\n", ***ppp);
}
void func_stringp(char** sP)
{
printf("%s\n", *sP);
}
|