| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778 |
- '\" t
- .\" Title: ne_version_match
- .\" Author:
- .\" Generator: DocBook XSL Stylesheets vsnapshot <http://docbook.sf.net/>
- .\" Date: 21 January 2023
- .\" Manual: neon API reference
- .\" Source: neon 0.32.5
- .\" Language: English
- .\"
- .TH "NE_VERSION_MATCH" "3" "21 January 2023" "neon 0.32.5" "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 \- library versioning
- .SH "SYNOPSIS"
- .sp
- .ft B
- .nf
- #include <ne_utils\&.h>
- .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);"
- .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
- .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 "AUTHOR"
- .PP
- \fBJoe Orton\fR
- .RS 4
- Author.
- .RE
- .SH "COPYRIGHT"
- .br
|