NNG_STRERROR(3)

πŸ“¦
version 1.12.0 Β· 4 versions
, in ubuntu stonking

πŸ’– NNG_STRERROR(3) πŸ’–

okay bestie, welcome to the NNG Reference Manual ✨ this one is genuinely a lil baby page but she's important, i promise. it's nng_strerror, and she's about one (1) job: turning your sad lil error number into actual words. no cap.


🌸 NAME 🌸

nng_strerror β€” return an error description

like. she gives you the words for the error. that's it. that's the whole vibe. πŸ¦‹


✨ SYNOPSIS ✨

#include <nng/nng.h>

const char * nng_strerror(int err);

that's the whole signature, bestie, look at her go πŸ‘‘


πŸ’… DESCRIPTION πŸ’…

so nng_strerror() returns the human-readable description of the given error in err. you hand her a number, she hands you a sentence. it's giving translator, it's giving customer service, it's giving "i got you girl". 🫢

note note note πŸ™ˆ the returned error message is provided in US English, but in the future locale-specific strings may be presented instead. so like, don't get too attached to the language, okay?
second note, also important, don't skip 😭 the specific strings associated with specific error messages are subject to change. therefore applications must not depend on the message β€” like, do not build logic on top of this string, bestie, i am begging β€” but you may use them verbatim when supplying information to end-users, such as in diagnostic messages or log entries. so: log it, print it, show it to a human πŸ’–. just don't parse it. periodt.

🌈 RETURN VALUES 🌈

this function returns the human-readable error message, terminated by a NUL byte. cute, tidy, null-terminated, exactly what you'd want from her. ⭐


πŸŽ€ SEE ALSO πŸŽ€


and that's the whole page, babes πŸ’œ mwah. this beauty dropped on the 2026-06-30 and she lives in the NNG Reference Manual β€” go forth and print your error strings responsibly, i'm obsessed with you πŸŒΈπŸ¦‹πŸ’…

πŸ“¦ where this page comes from