neon API reference NEVERSIONMATCH(3)
NAME
neversionmatch, neversionstring - library versioning
SYNOPSIS
#include
int neversionmatch (int major, int minor);
const char *neversionstring (void);
DESCRIPTION
The neversionmatch function returns non-zero if the li-
brary 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 neversionstring function returns a string giving the
library version.
EXAMPLES
To require neon 1.x, version 1.2 or later:
if (neversionmatch(1, 2)) {
printf("Library version out of date: 1.2 required, found %s.",
neversionstring());
exit(1);
}
AUTHOR
Joe Orton .
ATRIBUTES
See attributes(5) for descriptions of the following attri-
butes:
neon 0.25.5 Last change: 20 January 2006 1
neon API reference NEVERSIONMATCH(3)
ATRIBUTE TYPE ATRIBUTE VALUE
Availability SUNWneon
Interface Stability Volatile
NOTES
Source for Neon is available on http:/opensolaris.org.
neon 0.25.5 Last change: 20 January 2006 2
|