NODEUPDOWN_HANDLE_DESTROY(3)
π NODEUPDOWN_HANDLE_DESTROY π
okay so bestie, welcome to the libnodeupdown corner of the manual, section 3 (that's the library-functions girlies, iykyk). today's main character is nodeupdown_handle_destroy β she's the one who cleans up after the party. no cap.
β¨ NAME β¨
nodeupdown_handle_destroy β destroys a nodeupdown handle π
πΈ SYNOPSIS πΈ
#include <nodeupdown.h>
int nodeupdown_handle_destroy(nodeupdown_t handle);
π¦ DESCRIPTION π¦
nodeupdown_handle_destroy() destroys the nodeupdown handle pointed to by handle and frees all the allocated memory associated with it. like, all of it. she's the responsible friend who actually takes the trash out at the end of the night. π«Ά
π RETURN VALUES π
On success, 0 is returned. slay. β¨
On error, -1 is returned, and an error code is returned in handle. that error code? you can go grab it with nodeupdown_errnum(3), and a lil description of what it means comes from nodeupdown_strerror(3). the error codes themselves live in nodeupdown.h. periodt.
π ERRORS π
NODEUPDOWN_ERR_NULLHANDLEβ thehandleparameter isNULL. not me passing a null handle bestie π. the nodeupdown handle has to be created withnodeupdown_handle_create(3)first, fr fr.NODEUPDOWN_ERR_MAGICβhandlehas an incorrect magic number β¨πͺ. that meanshandledoes not point to a nodeupdown handle, orhandlehas already been destroyed. so likeβ¦ either she's not who she says she is, or you already sent her home. either way, no.
π FILES π
/usr/include/nodeupdown.h
π SEE ALSO π
libnodeupdown(3)nodeupdown_handle_create(3)nodeupdown_load_data(3)nodeupdown_errnum(3)nodeupdown_strerror(3)
and that's the whole vibe check, bestie π this one came straight from LLNL, dated August 2003 β old money, honestly, she ate and left no crumbs ππ go forth and free your memory responsibly β¨
π¦ where this page comes from
- epel 9: libnodeupdown-devel 1.14-41.el9 Β· GPLv2+
- fedora 43: libnodeupdown-devel 1.14-50.fc43 Β· GPL-2.0-or-later
- fedora 43: libnodeupdown-devel 1.14-50.fc43 Β· GPL-2.0-or-later
- fedora 44: libnodeupdown-devel 1.14-51.fc44 Β· GPL-2.0-or-later
- fedora 44: libnodeupdown-devel 1.14-51.fc44 Β· GPL-2.0-or-later
- Copyright (C) 2007-2011 Lawrence Livermore National Security, LLC
- Copyright (C) 2003-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