ARES\_DESTROY\_OPTIONS(3) Library Functions Manual ARES\_DESTROY\_OPTIONS(3)

# [NAME](#NAME)

ares\_destroy\_options - Destroy options initialized with ares\_save\_options

# [SYNOPSIS](#SYNOPSIS)

```
#include <ares.h>
void ares_destroy_options(struct ares_options *options)
```

# [DESCRIPTION](#DESCRIPTION)

The [**ares\_destroy\_options(3)**](/man/os/c-ares/ares_destroy_options.3) function destroys the options struct identified by Ioptions**, freeing all memory allocated by** **[ares\_save\_options(3)](/man/os/c-ares/ares_save_options.3).**

# [SEE ALSO](#SEE_ALSO)

[**ares\_save\_options**(3)](/man/os/c-ares/ares_save_options.3), [**ares\_init\_options**(3)](/man/os/c-ares/ares_init_options.3)

1 June 2007

---

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