ARES\_LIBRARY\_INITIALIZED(3) Library Functions Manual ARES\_LIBRARY\_INITIALIZED(3)

# [NAME](#NAME)

ares\_library\_initialized - get the initialization state

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

Returns information if c-ares needs to get initialized.

# [RETURN VALUE](#RETURN_VALUE)

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

# [AVAILABILITY](#AVAILABILITY)

This function was first introduced in c-ares version 1.11.0

# [SEE ALSO](#SEE_ALSO)

[**ares\_library\_init**(3)](/man/os/c-ares/ares_library_init.3), [**ares\_library\_cleanup**(3)](/man/os/c-ares/ares_library_cleanup.3)

29 Sep 2016

---

Document: ares_library_initialized(3) from c-ares 1.34.8-r4 (Chainguard OS)
Source: https://github.com/c-ares/c-ares
