DWARF_ERRMSG(3)

πŸ“¦ version 15.1, in freebsd 14.5, freebsd 15.1, nixpkgs unstable

✨ DWARF_ERRMSG(3) ✨

okay so bestie, this one lives in the Library Functions Manual and it's literally the glow-up your error messages deserve πŸ’…

🌈 LIBRARY 🌈

DWARF Access Library (libdwarf, -ldwarf) 🫢

🌸 SYNOPSIS 🌸

#include <libdwarf.h>

const char *
dwarf_errmsg(Dwarf_Error err);

πŸ’– DESCRIPTION πŸ’–

Function dwarf_errmsg() returns a NUL-terminated string for the error denoted by argument err. So yeah, it's giving "turn my mysterious error into a cute little readable string" energy ✨

Argument err should be a valid handle to a Dwarf_Error instance. Valid handle only, babe β€” no cap πŸŽ€

🧠 Memory Management 🧠

The returned pointer should not be freed using free(3) or dwarf_dealloc(3). Like, do not touch it with those cleanup tools, fr fr πŸ™ˆ

πŸ‘‘ RETURN VALUES πŸ‘‘

Function dwarf_errmsg() returns a pointer to a NUL-terminated string. That's the whole return vibe, and it ate πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹


xoxo, source/version Debian β€” dated December 12, 2009 πŸ’–πŸŽ€βœ¨

πŸ“¦ where this page comes from