ne_version_match
Prev | neon API reference | Next

## Name

ne_version_match, ne_version_string, ne_version_library — 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.

Prev | Up | Next
ne_token | Home | ne_xml_create