Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!swrinde!zaphod.mps.ohio-state.edu!samsung!munnari.oz.au!goanna!ok From: ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: Is this ok?? Keywords: pointer initialization Message-ID: <4942@goanna.cs.rmit.oz.au> Date: 12 Mar 91 02:23:27 GMT References: <15439@smoke.brl.mil> Organization: Comp Sci, RMIT, Melbourne, Australia Lines: 14 In article <15439@smoke.brl.mil>, gwyn@smoke.brl.mil (Doug Gwyn) writes: > In article <4934@goanna.cs.rmit.oz.au> ok@goanna.cs.rmit.oz.au (Richard A. O'Keefe) writes: > >The only system-specific thing in it is the "return 0;" in main(). > > Even that is strictly conforming to the C standard. I didn't say it was *non-standard*, I said it was *system-specific*. There are a lot of pre-ANSI C compilers out there, and I have met ones where "return 0;" in the main program did not work at all. I didn't say that the VAX/VMS C compiler doesn't like it either. My point was simply that ANSI or not, one may run into compilers where it doesn't work, so one might as well play safe and stick with exit(). -- The purpose of advertising is to destroy the freedom of the market.