NE_VERSION_MATCH(3)

πŸ“¦
version 0.37.1 Β· 3 versions
, in epel 10, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable

πŸ’– NE_VERSION_MATCH(3) πŸ’–

okay bestie, welcome to the neon API reference ✨ this page is your one-stop shop for ne_version_match, ne_version_string, and ne_version_library β€” aka the whole library versioning situation πŸŽ€ no cap.


🌸 NAME 🌸

ne_version_match, ne_version_string, ne_version_library β€” library versioning, fr fr πŸ¦‹


✨ SYNOPSIS ✨

#include <ne_utils.h>

int ne_version_match(int major, int minor);

const char *ne_version_string(void);

const char *ne_version_library(void);

like. look at her. iconic function signatures πŸ’…


πŸ’œ DESCRIPTION πŸ’œ

okay so first up, ne_version_match β€” she takes major and minor as parameters, and she returns zero if the library version is backwards-compatible with the version you handed her. zero = good news = we slay πŸ™Œ anything else means nope.

then we have ne_version_string β€” she returns a string giving you the library version and build information. the full tea, basically πŸ«–

and lastly ne_version_library β€” she returns a string with the library version number alone, like literally just "0.37.0" and nothing else. minimal. clean. main character energy πŸ‘‘


🌈 EXAMPLES 🌈

say you wanna require a version of neon that's backwards-compatible with version 1.2.0. bestie, you'd do this:

if (ne_version_match(1, 2)) {
    printf("Library version out of date: 1.2 required, found %s.",
           ne_version_string());
    exit(1);
}

not me writing version checks at 2am 😭 but look how tidy it is tho πŸ’–


πŸŽ€ HISTORY πŸŽ€

the ne_version_library function is available in neon 0.37.0 and later. so if you're on anything older, she simply does not exist yet πŸ™ˆ


Copyright Β© 2001-2026 Joe Orton


and that's the whole page, bestie!! go forth and version-check responsibly πŸ¦‹βœ¨

this has been neon 0.37.1 from 15 March 2026 β€” mwah, ily, periodt πŸ’…πŸ’–

πŸ“¦ where this page comes from