ARES_VERSION(3)

πŸ“¦
version 1.34.9 Β· 2 versions
  • 1.34.9 Β· alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking (latest)
  • 1.19.1 Β· centos-stream 9, debian bookworm, ubuntu jammy
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… NAME πŸ’…

ares_version β€” bestie, it gets the version number of the library. This page is ARES_VERSION(3) from the Library Functions Manual, and she's serving documentation realness. ✨

✨ SYNOPSIS ✨

#include <ares.h>

const char *ares_version(int *version)

🌸 DESCRIPTION 🌸

okay so 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. not me trying to return an integer when there's no pointer, bye. πŸ™ˆ

The integer is built up as a 24bit number, with 8 separate bits used for major number, minor number and patch number. So a version string such as 1.2.3 will be returned as the hexadecimal number 0x010203 (decimal 66051). math ate, no cap. πŸ”₯

πŸ’– SEE ALSO πŸ’–


kisses bestie, this was ARES_VERSION(3) from the Library Functions Manual, dated 29 January 2004. periodt. 🫢✨

πŸ“¦ where this page comes from