"exit 0;" - or - "exit (0);" ?

Karl Heuer karl at haddock.UUCP
Thu Nov 20 01:04:37 AEST 1986


In article <6355 at alice.UUCP> ark at alice.UUCP writes:
>"exit 0;" is illegal -- exit is a function just like any other.  I am sure
>you are mistaken when you say you've seen it many times.  In fact, I
>strongly suspect you are confusing it with "return 0;" which is legal C.

Or perhaps with awk or shell scripts, where "exit 0" is legal.

Karl W. Z. Heuer (ima!haddock!karl or karl at haddock.isc.com), The Walking Lint



More information about the Comp.lang.c mailing list