Xenix 386 v2.3 bug?

Paul De Bra debra at alice.UUCP
Fri Nov 11 03:26:03 AEST 1988


In article <40 at maxx.UUCP> tyager at maxx.UUCP (Tom Yager) writes:
>...
>2. return(value) from main() doesn't work the same as exit(value)

According to the new K&R book return and exit should be equivalent in
ANSI C. However, I don't think this used to be the case before.

return is a C statement which causes main to return a value to its caller,
and this may prevent some necessary cleanup in older implementations.
exit is a library function which does the necessary cleanup and then
terminates the process.

Paul.
-- 
------------------------------------------------------
|debra at research.att.com   | uunet!research!debra     |
------------------------------------------------------



More information about the Comp.unix.xenix mailing list