delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/26/16:05:00

From: awnbreel AT panix DOT com (Michael R Weholt)
Newsgroups: comp.os.msdos.djgpp
Subject: main() {...} (was: using rhide)
Date: Sun, 26 Jan 97 14:59:12 GMT
Organization: Rookery Prawl
Lines: 21
Message-ID: <5cfriq$1ql@news1.panix.com>
References: <01bbf2bd$ec4f95c0$590520ce AT d-moran> <01bc0b1f$c48e8ee0$94b15380 AT maan-m DOT -hamze>
NNTP-Posting-Host: mrw.dialup.access.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <01bc0b1f$c48e8ee0$94b15380 AT maan-m DOT -hamze>,
      "Maan M. Hamze" <mmhamze AT mail DOT utexas DOT edu> wrote:
>Also, since we are at it:
>main() ???!!!???  This is a no, no, no.....:)
>use:
>
>int main(void) 
>        {etc.....}
>
>with C.

        Pardon the brief off-topic interlude but why is main() {...} a 
problem?  I'm just learning C and all the books and tutorials I'm 
using (including the O'Reilly book =Practical C=) employ the plain old 
vanilla (i.e., *without* the "int main(void)") format.  If these books 
and tutorials are leading me down the garden path, I'd like to know 
about it.  Thanks.

Michael R Weholt
 http://www.panix.com/~mrw/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019