• Doc Avid Mornington
    link
    fedilink
    arrow-up
    3
    ·
    1 year 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
      ·
      10 months ago

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