Path: utzoo!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!wuarchive!udel!haven!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Is void main(void) ANSI standard?? Message-ID: <15451@smoke.brl.mil> Date: 12 Mar 91 18:34:52 GMT References: <1991Mar11.085439.1@sysjj.mdcbbs.com> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 8 In article <1991Mar11.085439.1@sysjj.mdcbbs.com> hooverm@sysjj.mdcbbs.com (SQUID 6 on the DARK side) writes: >Is this ANSI standard? No, there are only two strictly conforming interface definitions your program can use, int main(void) and int main(int argc, char **argv). You should always terminate by invoking the exit function or by returning a value from the main function. The return value zero is appropriate when you are not trying to report an error to the environment.