NNG_VERSION(3)

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

🌸 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