line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
#include |
2
|
|
|
|
|
|
|
#include |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
FFI_UTIL_EXPORT const char * |
5
|
16
|
|
|
|
|
|
get_string_from_array(const char **array, int index) |
6
|
|
|
|
|
|
|
{ |
7
|
|
|
|
|
|
|
static char buffer[512]; |
8
|
16
|
100
|
|
|
|
|
if(array[index] == NULL) |
9
|
|
|
|
|
|
|
return NULL; |
10
|
|
|
|
|
|
|
strcpy(buffer, array[index]); |
11
|
12
|
|
|
|
|
|
return buffer; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
FFI_UTIL_EXPORT const char ** |
15
|
2
|
|
|
|
|
|
null() |
16
|
|
|
|
|
|
|
{ |
17
|
2
|
|
|
|
|
|
return NULL; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
FFI_UTIL_EXPORT const char ** |
21
|
1
|
|
|
|
|
|
onetwothree3() |
22
|
|
|
|
|
|
|
{ |
23
|
|
|
|
|
|
|
static char *buffer[3] = { |
24
|
|
|
|
|
|
|
"one", |
25
|
|
|
|
|
|
|
"two", |
26
|
|
|
|
|
|
|
"three" |
27
|
|
|
|
|
|
|
}; |
28
|
1
|
|
|
|
|
|
return buffer; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
FFI_UTIL_EXPORT const char ** |
32
|
1
|
|
|
|
|
|
onetwothree4() |
33
|
|
|
|
|
|
|
{ |
34
|
|
|
|
|
|
|
static char *buffer[4] = { |
35
|
|
|
|
|
|
|
"one", |
36
|
|
|
|
|
|
|
"two", |
37
|
|
|
|
|
|
|
"three", |
38
|
|
|
|
|
|
|
NULL |
39
|
|
|
|
|
|
|
}; |
40
|
1
|
|
|
|
|
|
return buffer; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
FFI_UTIL_EXPORT const char ** |
44
|
3
|
|
|
|
|
|
onenullthree3() |
45
|
|
|
|
|
|
|
{ |
46
|
|
|
|
|
|
|
static char *buffer[3] = { |
47
|
|
|
|
|
|
|
"one", |
48
|
|
|
|
|
|
|
NULL, |
49
|
|
|
|
|
|
|
"three" |
50
|
|
|
|
|
|
|
}; |
51
|
3
|
|
|
|
|
|
return buffer; |
52
|
|
|
|
|
|
|
} |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
FFI_UTIL_EXPORT const char ** |
55
|
1
|
|
|
|
|
|
ptrnull() |
56
|
|
|
|
|
|
|
{ |
57
|
|
|
|
|
|
|
static char *buffer[1] = { |
58
|
|
|
|
|
|
|
NULL |
59
|
|
|
|
|
|
|
}; |
60
|
1
|
|
|
|
|
|
return buffer; |
61
|
|
|
|
|
|
|
} |