jpayne@68: .\" jpayne@68: .\" Copyright 2004 by Daniel Stenberg jpayne@68: .\" SPDX-License-Identifier: MIT jpayne@68: .\" jpayne@68: .TH ARES_VERSION 3 "29 January 2004" jpayne@68: .SH NAME jpayne@68: ares_version \- Get the version number of the library jpayne@68: .SH SYNOPSIS jpayne@68: .nf jpayne@68: #include jpayne@68: jpayne@68: const char *ares_version(int *\fIversion\fP) jpayne@68: .fi jpayne@68: .SH DESCRIPTION jpayne@68: The \fBares_version(3)\fP function gets the library version as a string and jpayne@68: optionally as an integer stored in the \fIversion\fP argument. If you pass a jpayne@68: NULL, no integer is attempted to be returned. jpayne@68: jpayne@68: The integer is built up as 24bit number, with 8 separate bits used for major jpayne@68: number, minor number and patch number. This makes a version string such as jpayne@68: 1.2.3 will be returned as the hexadecimal number 0x010203 (decimal 66051). jpayne@68: .SH "SEE ALSO" jpayne@68: .BR ares_init (3), jpayne@68: .BR ares_library_init (3)