---
name: "ares_library_initialized"
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_library_initialized"
---

# ares\_library\_initialized(3)

get the initialization state

## NAME

ares\_library\_initialized - get the initialization state

## SYNOPSIS

```
#include <ares.h>
int ares_library_initialized(void)
```

## DESCRIPTION

Returns information if c-ares needs to get initialized.

## RETURN VALUE

*ARES\_ENOTINITIALIZED* if not initialized and *ARES\_SUCCESS* if no initialization is needed.

## AVAILABILITY

This function was first introduced in c-ares version 1.11.0

## SEE ALSO

[**ares\_library\_init**(3)](/ares_library_init/3.md), [**ares\_library\_cleanup**(3)](/ares_library_cleanup/3.md)
