[prev in list] [next in list] [prev in thread] [next in thread]
List: netbsd-port-arm
Subject: Re: A mess with complex arithmetics in earmv7hf
From: Mouse <mouse () Rodents-Montreal ! ORG>
Date: 2021-01-15 14:47:02
Message-ID: 202101151447.JAA04089 () Stone ! Rodents-Montreal ! ORG
[Download RAW message or body]
>> (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
/ \ Email! 7D C8 61 52 5D E7 2D 39 4E F1 31 3E E8 B3 27 4B
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic