upscli_strerror3
Return a string describing error condition
Usage
#include <upsclient.h>
const char *upscli_strerror(UPSCONN_t *ups);
Overview
The upscli_strerror() function takes the pointer ups to a UPSCONN_t state structure and returns a string describing the last error which occurred on this connection. The string is valid until the next call to upscli_strerror().
Return value
The upscli_strerror() function returns a description of the error, or an "unknown error" message if the error code is not recognized.
Releases
12 releases since Debian 3.1 (Sarge); the text changed 7 times.