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.)