Path: utzoo!attcan!uunet!snorkelwacker!bloom-beacon!eru!luth!sunic!tut!tukki!tarvaine From: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Newsgroups: comp.lang.c Subject: Re: (* func)(fred, bert) Summary: VMS doesn't like C Message-ID: <2085@tukki.jyu.fi> Date: 21 Nov 89 15:11:15 GMT References: <2387@stl.stc.co.uk> <744@lakart.UUCP> <0175@sheol.UUCP> <812@bbm.UUCP> <89318.115828CMH117@PSUVM.BITNET> <1541@bnlux0.bnl.gov> <1989Nov21.015949.18974@sq.sq.com> Reply-To: tarvaine@tukki.jyu.fi (Tapani Tarvainen) Organization: University of Jyvaskyla, Finland Lines: 25 In article <1989Nov21.015949.18974@sq.sq.com> lee@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@tukki.jyu.fi, tarvainen@finjyu.bitnet)