---
name: "ne_version_match"
section: "3"
platform: "linux"
package: "neon"
version: "0.37.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ne_version_match"
---

# ne\_version\_match(3)

library versioning

## 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.

## COPYRIGHT

Copyright © 2001-2026 Joe Orton\
