you are viewing a single comment's thread
view the rest of the comments
[–] 23 points 2 years ago* (last edited 2 years ago) (2 children)

Does it make me a bad person that I like this?

Edit: wait.. return ! 0 ; wtf

Edit 2: idc still like it frfr no cap

  • source
  • hideshow 4 child comments
  • [–] 5 points 2 years ago (1 child)

    Edit: wait… return ! 0 ; wtf

    I mean, returning non-zero exit status on error is just good practice. It even managed to evaluate to the same numerical value as EXIT_FAILURE when I tested it on my machine (gcc 11.4.0 linux x86-64), although I'm not sure if that's always the case or if it's undefined behavior.

    This cursed code is quite well-written.

  • source
  • parent
  • hideshow 2 child comments