ares_version - Get the version number of the library
#include <ares.h> const char *ares_version(int *version)
ARES_VERSION(3) Library Functions Manual ARES_VERSION(3)
NAME
ares_version - Get the version number of the library
SYNOPSIS
#include <ares.h>
const char *ares_version(int *version)
DESCRIPTION
The ares_version(3) function gets the library version as a string and
optionally as an integer stored in the version argument. If you pass a
NULL, no integer is attempted to be returned.
The integer is built up as 24bit number, with 8 separate bits used for
major number, minor number and patch number. This makes a version
string such as 1.2.3 will be returned as the hexadecimal number
0x010203 (decimal 66051).
ATTRIBUTES
See attributes(7) for descriptions of the following attributes:
+---------------+------------------+
|ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+---------------+------------------+
|Availability | library/libcares |
+---------------+------------------+
|Stability | Volatile |
+---------------+------------------+
SEE ALSO
ares_init(3), ares_library_init(3)
NOTES
Source code for open source software components in Oracle Solaris can
be found at https://www.oracle.com/downloads/opensource/solaris-source-
code-downloads.html.
This software was built from source available at
https://github.com/oracle/solaris-userland. The original community
source was downloaded from https://c-ares.haxx.se/download/c-
ares-1.17.2.tar.gz.
Further information about this software can be found on the open source
community website at https://c-ares.haxx.se/.
29 January 2004 ARES_VERSION(3)