include stdio ifdef __cplusplus extern endif int shared_foo puts foo r

 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
#include <stdio.h>
#ifdef __cplusplus
extern "C"{
#endif
int shared_foo()
{
puts("I'm foo\n");
return 0;
}
int shared_bar()
{
puts("I'm bar\n");
return 0;
}
#ifdef __cplusplus
}
#endif
int main()
{
return 0;
}