ne_version_match - Man Page

library versioning

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);

Description

The ne_version_match function returns zero if the library version is backwards-compatible with the version given in the major and minor parameters.

The ne_version_string function returns a string giving the library version and build information.

The ne_version_library function returns a string giving the library version number alone, for example "0.37.0".

Examples

To require a version of neon which is backwards-compatible with version 1.2.0:

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

History

The ne_version_library function is available in neon 0.37.0 and later.

Referenced By

ne_has_support(3).

The man pages ne_version_library(3) and ne_version_string(3) are aliases of ne_version_match(3).

1 March 2026 neon 0.37.0 neon API reference