Tiger_Man_〔he/him〕 to Programmer Humor@programming.dev • 9 months agothat's truelemmy.blahaj.zoneimagemessage-square14fedilinkarrow-up1365arrow-down19
arrow-up1356arrow-down1imagethat's truelemmy.blahaj.zoneTiger_Man_〔he/him〕 to Programmer Humor@programming.dev • 9 months agomessage-square14fedilink
minus-square@Tanoh@lemmy.worldlinkfedilink5•9 months agoAnd then there are things like strcmp() that uses 0 as true. At least it is for a good reason, but still confusing.
minus-square@rtxn@lemmy.worldlinkfedilink7•9 months agoI don’t find it confusing at all. The function doesn’t test equivalence, and the return value is not meant to be a logical value.
And then there are things like strcmp() that uses 0 as true. At least it is for a good reason, but still confusing.
I don’t find it confusing at all. The function doesn’t test equivalence, and the return value is not meant to be a logical value.