• 0 Posts
  • 57 Comments
Joined 1 year ago
cake
Cake day: June 13th, 2023

help-circle


  • grue@lemmy.mltoProgrammer Humor@lemmy.mlno cap
    link
    fedilink
    arrow-up
    5
    ·
    11 months ago

    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.