File: upscli_strerror.3

package info (click to toggle)
nut 2.4.3-1.1squeeze2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 5,816 kB
  • ctags: 5,658
  • sloc: ansic: 45,735; sh: 11,290; makefile: 668; python: 448; perl: 179
file content (22 lines) | stat: -rw-r--r-- 829 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
.TH UPSCLI_STRERROR 3 "Mon Jan 22 2007" "" "Network UPS Tools (NUT)"
.SH NAME
upscli_strerror \- return string describing error condition
.SH SYNOPSIS
.nf
.B #include <upsclient.h>
.sp
.BI "char *upscli_strerror(UPSCONN *ups);"
.fi
.SH DESCRIPTION
The \fBupscli_strerror()\fP function takes the pointer \fIups\fP to a
UPSCONN state structure and returns a string describing the last error
which occurred on this connection.  The string is valid until the next
call to \fBupscli_strerror()\fP.
.SH "RETURN VALUE"
The \fBupscli_strerror()\fP function returns a description of the error,
or an unknown error message if the error code is not recognized.
.SH "SEE ALSO"
.BR upscli_fd "(3), "upscli_get "(3), "
.BR upscli_readline "(3), "upscli_sendline "(3), "
.BR upscli_ssl "(3), "
.BR upscli_strerror "(3), "upscli_upserror "(3) "