ares_version.3 (767B)
1 .\" 2 .\" Copyright 2004 by Daniel Stenberg 3 .\" SPDX-License-Identifier: MIT 4 .\" 5 .TH ARES_VERSION 3 "29 January 2004" 6 .SH NAME 7 ares_version \- Get the version number of the library 8 .SH SYNOPSIS 9 .nf 10 #include <ares.h> 11 12 const char *ares_version(int *\fIversion\fP) 13 .fi 14 .SH DESCRIPTION 15 The \fBares_version(3)\fP function gets the library version as a string and 16 optionally as an integer stored in the \fIversion\fP argument. If you pass a 17 NULL, no integer is attempted to be returned. 18 19 The integer is built up as 24bit number, with 8 separate bits used for major 20 number, minor number and patch number. This makes a version string such as 21 1.2.3 will be returned as the hexadecimal number 0x010203 (decimal 66051). 22 .SH "SEE ALSO" 23 .BR ares_init (3), 24 .BR ares_library_init (3)