TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Mike Ruskai
from: Geoff Reynolds
date: 1995-04-28 18:55:20
subject: EMX main()

MR> Does anyone know why the EMX compiler insists that the 
 MR> main function has to 
 MR> return an integer?  It won't accept void as the return type.

Because it is an error for main to return anything other than an int. Some
other compilers don't catch this error :-)

    - Geoff


--- Maximus/2 2.02
* Origin: Low Level, Auckland, New Zealand +64-9-814-8858 (3:772/555)
SEEN-BY: 620/243 622/407 623/630 632/339 640/705 670/215 690/347 711/409 410
SEEN-BY: 711/413 430 807 808 809 934 955 712/515 713/888 770/115 771/1320
SEEN-BY: 772/20 135 140 207 350 380 555 774/605 800/1 7877/2809
@PATH: 772/555 20 711/955 808 809 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.