(* func)(fred, bert)
Tapani Tarvainen
tarvaine at tukki.jyu.fi
Wed Nov 22 02:11:15 AEST 1989
In article <1989Nov21.015949.18974 at sq.sq.com> lee at sq.com (Liam R. E. Quin) writes:
>>VMS also complains when main() returns a non-odd value.
>Can main() return 0 (which is certainly not an odd number) safely?
Safely, yes -- but it'll give an error message
%NONAME-W-NOMSG, Message number 00000000
which may not be dangerous but it sure is annoying.
In VMS the "All OK" message is 1 (I think all odd numbers
will exit quietly); in some programs I have code like this:
#ifdef vms
return 1;
#else
return 0;
#endif
and avoid using 1 as an error code.
Isn't VMS wonderful with C? :-(
--
Tapani Tarvainen (tarvaine at tukki.jyu.fi, tarvainen at finjyu.bitnet)
More information about the Comp.lang.c
mailing list