'\" t
.\" Title: ne_version_match
.\" Author:
.\" Generator: DocBook XSL Stylesheets vsnapshot
.\" Date: 03/20/2026
.\" Manual: neon API reference
.\" Source: neon
.\" Language: English
.\"
.TH "NE_VERSION_MATCH" "3" "03/20/2026" "neon" "neon API reference"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.\" http://bugs.debian.org/507673
.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n(.g .ds Aq \(aq
.el .ds Aq '
.\" -----------------------------------------------------------------
.\" * set default formatting
.\" -----------------------------------------------------------------
.\" disable hyphenation
.nh
.\" disable justification (adjust text to left margin only)
.ad l
.\" -----------------------------------------------------------------
.\" * MAIN CONTENT STARTS HERE *
.\" -----------------------------------------------------------------
.SH "NAME"
ne_version_match, ne_version_string, ne_version_library \- library versioning
.SH "SYNOPSIS"
.sp
.ft B
.nf
#include
.fi
.ft
.HP \w'int\ ne_version_match('u
.BI "int ne_version_match(int\ " "major" ", int\ " "minor" ");"
.HP \w'const\ char\ *ne_version_string('u
.BI "const char *ne_version_string(void);"
.HP \w'const\ char\ *ne_version_library('u
.BI "const char *ne_version_library(void);"
.SH "DESCRIPTION"
.PP
The
\fBne_version_match\fR
function returns zero if the library version is backwards\-compatible with the version given in the
\fImajor\fR
and
\fIminor\fR
parameters\&.
.PP
The
\fBne_version_string\fR
function returns a string giving the library version and build information\&.
.PP
The
\fBne_version_library\fR
function returns a string giving the library version number alone, for example
"0\&.37\&.0"\&.
.SH "EXAMPLES"
.PP
To require a version of neon which is backwards\-compatible with version 1\&.2\&.0:
.sp
.if n \{\
.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
.if n \{\
.RE
.\}
.SH "HISTORY"
.PP
The
\fBne_version_library\fR
function is available in neon 0\&.37\&.0 and later\&.
.SH "COPYRIGHT"
.br
Copyright \(co 2001-2026 Joe Orton
.br