www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/06/05/02:39:04

From: j DOT aldrich6 AT genie DOT com
Message-Id: <199606050616.AA022835366@relay1.geis.com>
Date: Wed, 5 Jun 96 06:26:00 UTC 0000
To: djgpp AT delorie DOT com
Mime-Version: 1.0
Subject: Re: Beginners srand error

Reply to message 3126053    from 95RGM AT ENG DOT CAM on 06/03/96  5:24PM


>void main, anyone?

As much as I'd like to, I've already said my piece on the subject.
I could find the original posts and copy them, if you'd like?  ;)

Well, maybe just once...

void main() is BAD PROGRAMMING!  BAD!  Go sit in the corner for 30
minutes!  :-P  The correct definition for main is:

int main( void )

if you don't need command-line arguments, or

int main( int argc, char *argv[] )

if you do.  Screw traditional C.

John

- Raw text -


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