• Doc Avid Mornington
    link
    fedilink
    arrow-up
    2
    ·
    11 months ago

    Ever see things like: if ((x == 0) == true)? Or: x = y == 'z' ? true : false? Some things just really make me worry about people, you know?

    • VaxHacker@programming.dev
      link
      fedilink
      arrow-up
      1
      ·
      6 months ago

      I did once see if (!x) strcpy(x, ""); It was from a VB “programmer” who was experimenting with C. In production code.