Port-arm archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: A mess with complex arithmetics in earmv7hf



>> (small p.s. the 'return 0' at the end of main is guaranteed when you
>> exit main out the bottom; echo $? to prove this; so return 0 is
>> unnecessary.)

It is ("reaching the } that terminates the main function returns a
value of 0" - C99 5.1.2.2.3 #1), but testing with "echo $?" (even when
that works, which will depend on the shell in use) doesn't demonstrate
anything about guarantees, only about what happens in the particular
environment the test was run in.

/~\ The ASCII				  Mouse
\ / Ribbon Campaign
 X  Against HTML		mouse%rodents-montreal.org@localhost
/ \ Email!	     7D C8 61 52 5D E7 2D 39  4E F1 31 3E E8 B3 27 4B


Home | Main Index | Thread Index | Old Index