libnutclient_general, nutclient_destroy, strarr_alloc, strarr_free
- Provided by: libnutclient-dev (Version: 2.8.4+really-2.1)
- Source: nut
- Report a bug
#include <nutclient.h>
typedef void* NUTCLIENT_t;
void nutclient_destroy(NUTCLIENT_t client);
typedef char** strarr;
strarr strarr_alloc(unsigned short count);
void strarr_free(strarr arr);
The nutclient_destroy() function destroys a NUTCLIENT_t or derived (like NUTCLIENT_TCP_t) connection object, and frees allocated memory.
Pointed strings must be allocated by (x)calloc or (x)strdup.
Another additional pointer set to NULL is added at the end of the array.
Common arguments: