There doesn't seem to be any reason for using it rather than just returning from main() as usual, and it provokes warnings about implicitly declared function when compiling them.
15 lines
274 B
C
15 lines
274 B
C
#include <stdio.h>
|
|
|
|
#include "example_wrap.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
int a = 42;
|
|
int b = 105;
|
|
int g = gcd(a, b);
|
|
printf("The gcd of %d and %d is %d\n", a, b, g);
|
|
printf("Foo = %f\n", Foo);
|
|
Foo = 3.1415926;
|
|
printf("Foo = %f\n", Foo);
|
|
return 0;
|
|
}
|
|
|