Benno wrote:

> Come on Eric,

EriK, like the viking.

> you know the Unix deal. Exit code 0 is always success
> with 1->255 being error codes. The doc could probably be better written
> as:
> 
> >>        0 (success)  System is on mains power
> >>        1 (error) System is not on mains power
> >>        255 (error)    Power status could not be determined

Ok, so its a documentation bug.

> Of course libc is full of this stuff,

I have no problem with sucess being 0 and error being not 0. I do
have a problem with true being 0.

> strcmp() returns 0 (false) if the strings match.

Yeah, that was always a bit on the nose, but it was done so that 
strcmp could return less than, zero or greater than.

Erik
-- 
+-----------------------------------------------------------+
  Erik de Castro Lopo
+-----------------------------------------------------------+
"I have never met anyone who can do Scheme, Haskell, and C pointers 
who can't pick up Java in two days, and create better Java code than
people with five years of experience in Java." --
http://www.joelonsoftware.com/articles/ThePerilsofJavaSchools.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to