libnutclient_general man page on DragonFly

Man page or keyword search:  
man Server   44335 pages
apropos Keyword Search (all sections)
Output format
DragonFly logo
[printable version]

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)

Network UPS Tools 2.7.3		  04/17/2015	       LIBNUTCLIENT_GENERAL(3)
[top]

List of man pages available for DragonFly

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net