Say i have 3 functions
void foo(int x);
void print(void);
int main(void);
main calls print, and print printfs out some information getting user input before exiting back to main.
However foo is not called in main, but needs to be called outside the program without it being modified, how can I go about doing this
foo does a printf when x = 3 and exits(0);
I was reading online and found something about using #pragma but I dont know it I can go forth with it.
Only languages I know are C, assembly and a little Java. Can you please give me suggestions on how to go about this problem.
I will PM you the source it you need more clarification. Thanks in advance. :)