Re: [LIP] return status from main()...
Pankaj Kaushal <[email protected]>
| Newsgroups | gmane.user-groups.linux.india.programmers |
|---|---|
| Message-ID | <[email protected]> |
Binand Sethumadhavan wrote:
> Sameer OAK posted in linux-india-programmers:
>>in 4.3-BSD and SVR-4, the return status of main() is 13 unless it
[snip]
>>void main(void){}
>>Linux returns 0.
>>can anyone please tell the reason?
> Because main returning void is not valid C. Behaviour in this case
> is undefined.
you might want to read this up too.
http://www.linuxgazette.com/issue84/hawk.html
Cheers!
Pankaj
--
( 2b || !2b)
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g.
Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click