1NE_VERSION_MATCH(3)           neon API reference           NE_VERSION_MATCH(3)
2
3
4

NAME

6       ne_version_match, ne_version_string - library versioning
7

SYNOPSIS

9       #include <ne_utils.h>
10
11
12       int ne_version_match (int major, int minor);
13
14       const char *ne_version_string (void);
15
16

DESCRIPTION

18       The  ne_version_match  function returns non-zero if the library version
19       is not of major version major, or the minor version is less than minor.
20       For  neon versions 0.x, every minor version is assumed to be incompati‐
21       ble with every other minor version.
22
23
24       The ne_version_string function returns a string giving the library ver‐
25       sion.
26
27

EXAMPLES

29       To require neon 1.x, version 1.2 or later:
30
31       if (ne_version_match(1, 2)) {
32           printf("Library version out of date: 1.2 required, found %s.",
33                  ne_version_string());
34           exit(1);
35       }
36
37

AUTHOR

39       Joe Orton <neon@webdav.org>.
40
41
42
43neon 0.25.5                     20 January 2006            NE_VERSION_MATCH(3)
Impressum