GENDERS_HANDLE_DESTROY(3)
β¨ NAME β¨
genders_handle_destroy β bestie, this is the one that destroys a genders handle π
πΈ SYNOPSIS πΈ
#include <genders.h>
int genders_handle_destroy(genders_t handle);
π DESCRIPTION π
okay so. genders_handle_destroy() does exactly what it says on the tin, no cap: it destroys the genders handle that handle points to, and frees up all the allocated memory that was riding along with it. it's giving cleanup era. it's giving closure. π§Ήβ¨
π«Ά RETURN VALUES π«Ά
- on success? it returns
0. slay. π - on error? it returns
-1, and an error code gets returned inhandle.
you can grab that error code with genders_errnum(3), and get a little description of what went wrong with genders_strerror(3). the error codes themselves live in genders.h. iykyk π
π ERRORS π
GENDERS_ERR_NULLHANDLEβ thehandleparameter isNULL. no handle, no vibes. the genders handle has to be created first withgenders_handle_create(3).GENDERS_ERR_MAGICβhandlehas an incorrect magic number πͺβ¨ which means eitherhandledoesn't actually point to a genders handle, or it's already been destroyed. she's gone, bestie π
π FILES π
/usr/include/genders.h
π SEE ALSO π
libgenders(3), genders_handle_create(3), genders_load_data(3), genders_errnum(3), genders_strerror(3)
this iconique lil page came from the lovely folks at LLNL, dated August 2003, and it's serving libgenders manual realness ππ¦ go forth and free your handles, angel β mwah π
π¦ 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