upscli_strerror(3)

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.

  1. 3.1–4.0
  2. 5.0–6.0
  3. 7
  4. 8
  5. 9–11
  6. 12
  7. 13
  8. Arch

From nut 2.8.5-2 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.