DWARF_FORMFLAG(3)
β¨ NAME β¨
DWARF_FORMFLAG(3) comes to you from the Library Functions Manual, and the star of the show is dwarf_formflag β the function that returns the value of a BOOLEAN class attribute. No cap, it's a whole vibe π.
π LIBRARY π
The DWARF Access Library (libdwarf, -ldwarf) is the library for this page, bestie. π«Ά
π οΈ SYNOPSIS π οΈ
#include <libdwarf.h>
int
dwarf_formflag(Dwarf_Attribute attr, Dwarf_Bool *ret, Dwarf_Error *err);
π DESCRIPTION π
Okay so here's the tea: dwarf_formflag() writes 1 into the location that argument ret points to when the attribute referenced by argument attr has a non-zero value. If that attribute does not have a non-zero value, it writes 0 instead. Slay. β¨
The form of argument attr must be one of DW_FORM_flag or DW_FORM_flag_present. Those are the forms allowed here β no substitutions, iykyk. π
If argument err is not NULL, it will be used to return an error descriptor in case of an error. That's the error-reporting hookup, bestie. π
π RETURN VALUES π
- On success,
dwarf_formflag()returnsDW_DLV_OK. β - In case of an error, it returns
DW_DLV_ERRORand sets argumenterr. π
π¨ ERRORS π¨
Function dwarf_formflag() may fail with the following errors, bestie β keep an eye out:
[DW_DLE_ARGUMENT]β either of argumentsattrorretwasNULL. π[DW_DLE_ATTR_FORM_BAD]β the attribute referenced by argumentattrwas not of a permitted kind. π
π SEE ALSO π
Go read these too, they're iconic π:
dwarf(3)dwarf_attr(3)dwarf_formblock(3)dwarf_formref(3)dwarf_formsdata(3)dwarf_formsig8(3)dwarf_formstring(3)dwarf_formudata(3)dwarf_hasattr(3)
Byeee bestie π«Ά This page is from Debian, dated June 21, 2010, and it's the DWARF_FORMFLAG(3) page. Periodt. π
π¦ where this page comes from
- freebsd 14.5: base 14.5
- freebsd 15.1: base 15.1
- nixpkgs unstable: libdwarf 15.0.0
- Copyright (c) 2010 Joseph Koshy
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms