]>
Commit | Line | Data |
---|---|---|
1 | #include <stdio.h> | |
2 | #include <stdlib.h> | |
3 | ||
4 | ||
5 | extern int foo(); | |
6 | extern int bar(); | |
7 | ||
8 | int main() | |
9 | { | |
10 | // two regular external function calls | |
11 | void* x = malloc(16); | |
12 | free(x); | |
13 | // two lazy dylib external function calls | |
14 | int result = foo(); | |
15 | fprintf(stderr, "foo() returned %d\n", result); | |
16 | bar(); | |
17 | return 0; | |
18 | } |