| 1 |
#include<subdefs.h> |
| 2 |
#include<stdio.h> |
| 3 |
|
| 4 |
|
| 5 |
int main(void) { |
| 6 |
int res; |
| 7 |
printf("Calling into sublib now.\n"); |
| 8 |
res = subfunc(); |
| 9 |
if(res == 42) { |
| 10 |
printf("Everything is fine.\n"); |
| 11 |
return 0; |
| 12 |
} else { |
| 13 |
printf("Something went wrong.\n"); |
| 14 |
return 1; |
| 15 |
} |
| 16 |
} |