View Single Post
  #14   Spotlight this post!  
Unread 11-10-2003, 14:11
djcapelis's Avatar
djcapelis djcapelis is offline
Fried Manic Custard
None #0675 (Geeks with Power Tools)
Team Role: Programmer
 
Join Date: May 2003
Rookie Year: 2001
Location: Rohnert Park, CA
Posts: 129
djcapelis will become famous soon enoughdjcapelis will become famous soon enough
Send a message via ICQ to djcapelis Send a message via AIM to djcapelis Send a message via Yahoo to djcapelis
Quote:
Originally posted by Mike Betts
Eric,

I did compile and run Matt's code under Turbo C and Quick C with no problems. His program is the simplest code which is guaranteed to run under ANSI compliant C.

<snip>

Without adding this, Matt is unable to access command line parameters which is OK because we will not be running under DOS anyway...

Not exactly accurate, first, to comply with ANSI C Raven_Writer is correct in saying that main must return a value as ANSI C specifically says main must be declared as int.

As for command line parameters, they aren't just for DOS... if so they'd be useless... that command line sucks. They are also the same to access command line parameters on UNIX type operating systems. (Which if these Micro controllers were running BrickOS we theorectically might care about, but then again, they aren't.)
__________________
"I have more friends than enemies, I'm working to resolve the issue."