S
sugaray
i was just told in the 'simple base-conveter program' thread, that
using 'return' is not portable in such case:
if(argc!=2) {
fprintf("error message\n");
return 1;
}
it should be replace by 'exit(EXIT_FAILURE)',
but i don't get why's that ? isn't 'return' keyword of C ? why is not
portable, but exit() does ? can someone tell me why, or better, give
some examples showing the code is not portable by using 'return' ?
thanx.
using 'return' is not portable in such case:
if(argc!=2) {
fprintf("error message\n");
return 1;
}
it should be replace by 'exit(EXIT_FAILURE)',
but i don't get why's that ? isn't 'return' keyword of C ? why is not
portable, but exit() does ? can someone tell me why, or better, give
some examples showing the code is not portable by using 'return' ?
thanx.