Xref: utzoo comp.misc:12007 alt.folklore.computers:10738 Newsgroups: comp.misc,alt.folklore.computers Path: utzoo!utgpu!news-server.csri.toronto.edu!torsqnt!lethe!comspec!scocan!tom From: tom@sco.COM (Tom Kelly) Subject: Re: "Invalid null command" Organization: SCO Canada, Inc. (formerly HCR Corporation) Date: Sun, 07 Apr 1991 00:04:53 GMT Message-ID: <1991Apr07.000453.27942@sco.COM> References: <1991Apr2.005620.11434@ico.isc.com> <1991Apr04.210851.12396@ima.isc.com> Sender: news@sco.COM (News administration) In a recent article, I suggested some changes to Dick Dunn's ANSI C version of IEFBR14. I originally suggested that exit(0) could be replaced by return(0), and the setlocale() could be dropped, eliminating the need for include files. But then I said that return(0) was non portable; it had to be EXIT_SUCCESS, which required an include file. Apparently, Gordon Burditt (gordon@sneaky.lonestar.org) can read better than I can, since he pointed out in mail that the section on exit() in the C standard makes a special case for zero as successful termination. So: int main(void) { return 0; } is all you need for IEFBR14. As penance, I suppose I should read the standard again, but I've already lost as much hair as I can afford. Tom Kelly (416) 922-1937 SCO Canada, Inc. (formerly HCR) 130 Bloor St. W., Toronto, Ontario, Canada {utzoo, utcsri, uunet}!scocan!tom or tom@sco.com