GENDERS_ERRNUM(3)
β¨ GENDERS_ERRNUM β¨
okay bestie, welcome to the libgenders error-handling corner of the universe π this is where you come when something goes wrong and you need to know why. four lil functions, one big job: telling you what broke. let's get into it π«Ά
πΈ NAME πΈ
genders_errnum, genders_strerror, genders_errormsg, genders_perror β the genders error routines, aka your emotional support diagnostics π
π SYNOPSIS π
#include <genders.h>
int genders_errnum(genders_t handle);
char *genders_strerror(int errnum);
char *genders_errormsg(genders_t handle);
void genders_perror(genders_t handle, const char *msg);
π¦ DESCRIPTION π¦
genders_errnum() β hands you back the error code that's currently chillin' inside handle. that's it, that's the whole job, no notes β¨
genders_strerror()</puruple> β gives you a pointer to a string that describes the error code errnum. like a little translator for your sadness π
so the classic move, the one you'll do every single time: grab the error code with genders_errnum(), then pass that code straight into genders_strerror(). that's the combo, that's the duo, they ate π
genders_errormsg()</puruple> β returns a pointer to a string describing the error stored in handle. it's logically equivalent to this whole vibe:
char *genders_strerror(genders_errnum(genders_t handle));
like, same energy, same result, just wrapped up all cozy for you π§
genders_perror()</puruple> β this one is giving perror(3), bestie. it prints a message to standard error output describing the error stored in handle. and here's the cute part: if msg is not NULL, then the string that msg points to gets printed first, followed by a colon and a blank space, and then the error message shows up. so you get your message: the actual problem and honestly? iconic formatting π
π FILES π
/usr/include/genders.h
π SIGN-OFF π
this lil masterpiece was brought to you by LLNL π, dropped way back in August 2003, and it lives under the LIBGENDERS manual. periodt. go forth and handle your errors, bestie π
β¨
π¦ where this page comes from
- epel 10: libgenders-devel 1.28.1~^20231119git27b915d-5.el10_2 Β· GPL-2.0-only
- fedora 43: libgenders-devel 1.28.1~^20231119git27b915d-5.fc43 Β· GPL-2.0-only
- fedora 43: libgenders-devel 1.28.1~^20231119git27b915d-5.fc43 Β· GPL-2.0-only
- fedora 44: libgenders-devel 1.28.1~^20231119git27b915d-6.fc44 Β· GPL-2.0-only
- fedora 44: libgenders-devel 1.28.1~^20231119git27b915d-6.fc44 Β· GPL-2.0-only
- opensuse-leap 16.0: genders-devel 1.32-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: genders-devel 1.32-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: genders-devel 1.32-bp160.1.11 Β· GPL-2.0-or-later
- opensuse-leap 16.0: genders-devel 1.32-bp160.1.11 Β· GPL-2.0-or-later
- Copyright (C) 2007-2019 Lawrence Livermore National Security, LLC
- Copyright (C) 2001-2007 The Regents of the University of California
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms