NNG_VERSION(3)
πΈ NNG_VERSION(3) β the NNG Reference Manual, but make it cute πΈ
okay bestie, welcome to the nng_version(3) page of the NNG Reference Manual π this one's a short one, but it's giving iconic anyway.
β¨ NAME β¨
nng_version β report library version π
β¨ SYNOPSIS β¨
#include <nng/nng.h>
const char * nng_version(void);
β¨ DESCRIPTION β¨
so the nng_version() function returns a human readable version number for NNG. that's it. that's the function. she's simple, she's elegant, she serves π
but wait, there's more (there's always more) β you can also get compile time version info through some predefined macros, and honestly they're so handy:
NNG_MAJOR_VERSIONβ the major version number πNNG_MINOR_VERSIONβ the minor version number β¨NNG_PATCH_VERSIONβ the patch version number π
NNG is developed and released using Semantic Versioning 2.0 (http://www.semver.org), and the version numbers reported refer to both the API and the library itself. lowkey important detail: the ABI β that's the application binary interface β between the library and the application is controlled in a similar, but different manner, depending on the link options and how the library is built. not the same thing, no cap π«Ά
β¨ RETURN VALUES β¨
A null-terminated string containing the library version number. that's your whole prize. enjoy it π
β¨ ERRORS β¨
None. not one. zero errors. she simply doesn't do that π
β¨ SEE ALSO β¨
ngl bestie, if you're out here vibe-checking versions before a build, this is your girl. no errors, no drama, just a string π¦
mwah π thanks for reading, ily β this was NNG_VERSION(3) from the NNG Reference Manual, dated 2026-06-30. go forth and version responsibly, periodt.
π¦ 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