When evaluating the conditional expression in an if or while statement, 0 (or the equivalent floating point and pointer values) is false and any non-zero value is true.
:>: -----Original Message----- :>: From: IBM Mainframe Discussion List [mailto:[email protected]] On :>: Behalf Of John Gilmore :>: Sent: Wednesday, May 08, 2013 8:05 PM :>: To: [email protected] :>: Subject: Re: Return codes :>: :>: This practice reflects another C design defect. In the absence of an :>: explicit boolean data type, C uses the dubious but ineluctable :>: convention that a coded-arithmetic value of 1 represents truth and one :>: of zero represents falsity. Values that are not 1, truth, are then by :>: extension treated as representations of falsity. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
