Message-Id: <3.0.32.19970629210500.006f9e94@mail.geocities.com> Date: Sun, 29 Jun 1997 21:05:12 -0300 To: djgpp AT delorie DOT com From: Guilherme Silveira Subject: Re: Allegro: Displaying 640x480 PCX file Mime-Version: 1.0 Content-Type: text/enriched; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Precedence: bulk It's not wrong, try=AB to look=AB at any=AB allegro example :) Bye Guilherme > >Guilherme Silveira wrote: >>=20 >> Why=AB is it incorrect? > >main() must return an integer according to the ANSI C specification.=20 >Doing anything else is an ANSI violation and may result in undefined >behavior. In C++ the compiler will automatically convert the return >value to int and give you a warning. > >References: comp.lang.c Frequently Asked Questions >(http://www.eskimo.com/~scs/C-faq/top.html), questions 11.12 through >11.16. >ANSI Sec. 2.1.2.2.1, Sec. F.5.1=20 >ISO Sec. 5.1.2.2.1, Sec. G.5.1=20 >H&S Sec. 20.1 p. 416=20 >CT&P Sec. 3.10 pp. 50-51=20 > >Enough? > >> At 19:41 29/06/1997 +0000, you wrote: >> >Guilherme Silveira wrote: >> >> >> >> The function Main should receive two parameters: >> >> void main(int argc, char * argv[]){ >> > >> >int main( int argc, char *argv[] ) { >> > >> >Please don't post incorrect examples. > >--=20 >--------------------------------------------------------------------- >| John M. Aldrich | "Money is truthful. If a man speaks | >| aka Fighteer I | of his honor, make him pay cash." | >| mailto:fighteer AT cs DOT com | | >| http://www.cs.com/fighteer | - Lazarus Long | >--------------------------------------------------------------------- > --------------------------------------------------------------- Guilherme Silveira - Sao Paulo - Brasil 18/09/1981 - Until Today... carlos AT usway DOT com - thedarkage AT mail DOT geocities DOT com What about taking a look on my page: http://www.geocities.com/SiliconValley/Way/5441/ DJGPP - Visual Basic - C/C++ - Xcom - Warcraft II THE DARK AGE