---
name: "ares_strerror"
section: "3"
platform: "linux"
package: "c-ares"
version: "1.34.9-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ares_strerror"
---

# ares\_strerror(3)

Get the description of an ares library error code

## NAME

ares\_strerror - Get the description of an ares library error code

## SYNOPSIS

```
#include <ares.h>
const char *ares_strerror(int code)
```

## DESCRIPTION

The **ares\_strerror** function gets the description of the ares library error code *code*, returning the result as a NUL-terminated C string.

## NOTES

This function is not compatible with ares, it takes a different set of arguments.
