NNG_STRERROR(3)
π 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
- ubuntu stonking: libnng-dev 1.12.0-1 Β· MIT OR Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms