Hi. Just wondering. If I call a function that prints out a program's usage, such as,
Is there any difference in calling exit() from within the function, as opposed toCode:void display_usage(void) { fprintf(stderr, "Usage: cvt [-dhb] number [-dhb]\n"); exit(1); }
returning to main() and then calling it from there? Such as,
thanksCode:int main(void) { display_usage(); exit(1); } void display_usage(void) { fprintf(stderr, "Usage: cvt [-dhb] number [-dhb]\n"); }