Man page - libnutclient_general(3)
Packages contas this manual
- libnutclient_commands(3)
- nutclient_tcp_get_timeout(3)
- nutclient_tcp_create_client(3)
- libnutclient_tcp(3)
- nutclient_device_master(3)
- nutclient_set_device_variable_value(3)
- libnutclient_variables(3)
- nutclient_tcp_reconnect(3)
- nutclient_has_device_variable(3)
- nutclient_tcp_is_connected(3)
- libnutclient_devices(3)
- nutclient_device_forced_shutdown(3)
- nutclient_get_device_variable_description(3)
- nutclient_get_device_commands(3)
- nutclient_logout(3)
- nutclient_has_device(3)
- nutclient_set_device_variable_values(3)
- nutclient_get_device_description(3)
- nutclient_get_devices(3)
- nutclient_device_login(3)
- libnutclient(3)
- nutclient_get_device_variables(3)
- nutclient_has_device_command(3)
- nutclient_get_device_variable_values(3)
- libnutclient_misc(3)
- nutclient_tcp_disconnect(3)
- nutclient_tcp_set_timeout(3)
- nutclient_authenticate(3)
- nutclient_execute_device_command(3)
- libnutclient_general(3)
- nutclient_get_device_rw_variables(3)
- nutclient_get_device_num_logins(3)
- nutclient_get_device_command_description(3)
- nutclient_destroy(3)
apt-get install libnutclient-dev
Manual
| LIBNUTCLIENT_GENERAL(3) | NUT Manual | LIBNUTCLIENT_GENERAL(3) |
NAME
libnutclient_general, nutclient_destroy, strarr_alloc, strarr_free - General and utility functions in Network UPS Tools high-level client access library
SYNOPSIS
#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);
DESCRIPTION
The nutclient_destroy() function destroys a NUTCLIENT_t or derived (like NUTCLIENT_TCP_t) connection object, and frees allocated memory.
The strarr type represents an array of C strings (array of char pointer). The array must always be terminated by a NULL pointer. Pointed strings must be allocated by (x)calloc or (x)strdup.
The strarr_alloc() function allocates a strarr array with the specified number of (non-initialized) string pointers. Another additional pointer set to 0 is added at the end of the array.
The strarr_free function frees a strarr array. It also frees all pointed strings.
dev is the device name.
SEE ALSO
libnutclient(3)
| 06/27/2025 | Network UPS Tools 2.8.1 |