ares_version(3)

ares_version3

Get the version number of the library

Usage

#include <ares.h>
const char *ares_version(int *version)

Overview

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).

Releases

10 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0–9
  3. 10–12
  4. 13–Arch

From c-ares 1.34.9-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.