GENDERS_PARSE(3)
β¨ GENDERS_PARSE β¨
okay bestie, welcome to genders_parse from LIBGENDERS π β this is a <genders.h> girlie and she is literally the one you call when you need to figure out what went wrong with a genders file. no cap.
πΈ SYNOPSIS πΈ
#include <genders.h>
int genders_parse(genders_t handle, const char *filename, FILE *stream);
π¦ DESCRIPTION π¦
so genders_parse() parses the genders file that filename points at, and then it outputs info about all the parse errors it found in that genders file to stream. it's giving detective energy πβ¨
if filename is NULL, she'll go check the default genders file instead. no biggie.
if stream is NULL, the info gets output to standard error. periodt.
π RETURN VALUES π
on success, the number of parse errors discovered is returned. so if there are zero errors, 0 comes back β slay. β¨
on error, -1 is returned, and an error code is returned in handle. you can grab that error code with genders_errnum(3), and get a description of it with genders_strerror(3). the error codes are defined in genders.h. iykyk π
π ERRORS π
GENDERS_ERR_NULLHANDLEβ thehandleparameter isNULL. bestie, the genders handle must be created withgenders_handle_create(3)first, that's not optional π«ΆGENDERS_ERR_OPENβ the genders file thatfilenamepoints at cannot be opened for reading. it's just not opening, sorry πGENDERS_ERR_OVERFLOWβ a line in the genders database exceeds the maximum allowed length. too much going on fr fr πGENDERS_ERR_MAGICβhandlehas an incorrect magic number. basicallyhandledoes not point to a genders handle, ORhandlehas already been destroyed bygenders_handle_destroy(3). rip β¨
π FILES π
/usr/include/genders.h
π SEE ALSO π
libgenders(3), genders_handle_create(3), genders_errnum(3), genders_strerror(3)
bestie go read those. not me being obsessed with cross-references π
okay that's the whole thing!! this page came to you from LLNL, dated August 2003 β vintage but iconic, main character energy forever ππ bye 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