1UPSCLI_STRERROR(3) NUT Manual UPSCLI_STRERROR(3)
2
3
4
6 upscli_strerror - return string describing error condition
7
9 #include <upsclient.h>
10
11 const char *upscli_strerror(UPSCONN_t *ups);
12
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
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
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.8.0 04/26/2022 UPSCLI_STRERROR(3)