die(3)

πŸ’– die(3) β€” Library Functions Manual πŸ’–

okay bestie, gather round, because today we're talking about die from the libowfat girlies πŸ’… this page lives in the Library Functions Manual and honestly? she's short, she's dramatic, she's iconic. no notes.


✨ NAME ✨

die β€” print a warning diagnostic and then abort the program πŸ˜­πŸ’€

like. that's the whole job. she prints. she aborts. she does not elaborate.


🌸 SYNTAX 🌸

#include <libowfat/errmsg.h>

void die(int exitcode, const char *message, ...);

yes ma'am, <libowfat/errmsg.h> is the header, don't forget to include her or she simply will not show up πŸŽ€


πŸ¦‹ DESCRIPTION πŸ¦‹

so here's the tea: diesys is like die, except it will also print a string representation of the system error code (the one coming from errno). 🫢

that's it, that's the description. the page really said "I'm gonna tell you about diesys in the die description" and honestly? main character energy, we respect it. πŸ™ˆ


⭐ NOTE ⭐

This function does not return. ⚠️

not "returns void", not "returns eventually", not "returns if you ask nicely" β€” she does not return. periodt. πŸ’… if you were waiting for control to come back after calling die, bestie, it is not coming back. plan accordingly.


🌈 SEE ALSO 🌈

  • errmsg(7) πŸ’œ
  • die(3) πŸ’œ

(yes she's linking herself, and yes that's valid, she's that girl πŸ‘‘)


okay that's the whole page, short and slay ✨ this has been die(3) from the Library Functions Manual β€” take care of yourselves, check your errno, and remember: she does not return πŸŽ€πŸ’–πŸ§š