.\" Title: ne_version_match .\" Author: .\" Generator: DocBook XSL Stylesheets v1.72.0 .\" Date: 14 July 2007 .\" Manual: neon API reference .\" Source: neon 0.26.4 .\" .TH "NE_VERSION_MATCH" "3" "14 July 2007" "neon 0.26.4" "neon API reference" .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .SH "NAME" ne_version_match, ne_version_string \- library versioning .SH "SYNOPSIS" .sp .ft B .nf #include .fi .ft .HP 21 .BI "int ne_version_match(int\ " "major" ", int\ " "minor" ");" .HP 30 .BI "const char *ne_version_string(void);" .SH "DESCRIPTION" .PP The \fBne_version_match\fR function returns non\-zero if the library version is not of major version \fImajor\fR, or the minor version is less than \fIminor\fR. For neon versions 0.x, every minor version is assumed to be incompatible with every other minor version. .PP The \fBne_version_string\fR function returns a string giving the library version. .SH "EXAMPLES" .PP To require neon 1.x, version 1.2 or later: .sp .RS 4 .nf if (ne_version_match(1, 2)) { printf("Library version out of date: 1.2 required, found %s.", ne_version_string()); exit(1); } .fi .RE .SH "AUTHOR" .PP \fBJoe Orton\fR <\&neon@webdav.org\&> .sp -1n .IP "" 4 Author. .SH "COPYRIGHT"