On Sat, Dec 26, 1998 at 09:39:35PM +0000, James [on his mailserver] wrote:
> in C's logic, do -1 and 1 mean the same thing? i.e FALSE. 0 is the ONLY
> value that is interpreted as TRUE right?
> 
errr wait a minute. 0 equals false any other value represents truth. You seem
to be confusing this with the long standing convention used by some routines
(and the shell that 0 means ok (allowing various numbers to represent various
errors) If you use the logical not (i. e. !) a zero becomes 1 (ie true)
anything else 0. So your statement is correct if the TRUE and FALSE s are
swapped.
  Clear? Try checking the code through again.

Colin
  

Reply via email to