1UPSCLI_STRERROR(3)                NUT Manual                UPSCLI_STRERROR(3)
2
3
4

NAME

6       upscli_strerror - return string describing error condition
7

SYNOPSIS

9       #include <upsclient.h>
10
11       char *upscli_strerror(UPSCONN_t *ups);
12

DESCRIPTION

14       The upscli_strerror() function takes the pointer ups to a UPSCONN_t
15       state structure and returns a string describing the last error which
16       occurred on this connection. The string is valid until the next call to
17       upscli_strerror().
18

RETURN VALUE

20       The upscli_strerror() function returns a description of the error, or
21       an unknown error message if the error code is not recognized.
22

SEE ALSO

24       upscli_fd(3), upscli_get(3), upscli_readline(3), upscli_sendline(3),
25       upscli_ssl(3), upscli_strerror(3), upscli_upserror(3)
26
27
28
29Network UPS Tools 2.7.3.          03/02/2016                UPSCLI_STRERROR(3)
Impressum