• Tanoh@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    3 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.

    • rtxn@lemmy.world
      link
      fedilink
      arrow-up
      7
      ·
      2 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.