---
name: "ne_version_string"
section: "3"
platform: "linux"
package: "libneon27-dev"
version: "0.34.2-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ne_version_match"
---

# ne\_version\_string(3)

library versioning

Part of [ne\_version\_match(3)](/ne_version_match/3.md).

## NAME

ne\_version\_match, ne\_version\_string - library versioning

## SYNOPSIS

```
#include <ne_utils.h>
```

**int ne\_version\_match(int** *major***, int** *minor***);**

**const char \*ne\_version\_string(void);**

## DESCRIPTION

The **ne\_version\_match** function returns non-zero if the library version is not of major version *major*, or the minor version is less than *minor*. For neon versions 0.x, every minor version is assumed to be incompatible with every other minor version.

The **ne\_version\_string** function returns a string giving the library version.

## EXAMPLES

To require neon 1.x, version 1.2 or later:

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

## COPYRIGHT

Copyright © 2001-2024 Joe Orton\
