• @[email protected]
    link
    fedilink
    527 days ago

    And then there are things like strcmp() that uses 0 as true. At least it is for a good reason, but still confusing.

    • @[email protected]
      link
      fedilink
      727 days ago

      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.