mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +03:00
Release calc version 2.10.2t30
This commit is contained in:
35
help/strerror
Normal file
35
help/strerror
Normal file
@@ -0,0 +1,35 @@
|
||||
NAME
|
||||
strerror - returns a string describing an error value
|
||||
|
||||
SYNOPSIS
|
||||
strerror(x)
|
||||
|
||||
TYPES
|
||||
x error-value or non-negative integer
|
||||
|
||||
return string or error-value
|
||||
|
||||
DESCRIPTION
|
||||
If x is an error-value, strerror(x) returns a string describing that value.
|
||||
|
||||
If x is an integer within the ranges for system, builtin, and user
|
||||
defined error codes, the string describing error(x) is returned.
|
||||
For integers outside these ranges, an "index out of range for
|
||||
strerror" error is returned.
|
||||
|
||||
EXAMPLE
|
||||
> strerror(7)
|
||||
"Bad argument for unary -"
|
||||
|
||||
> x = 3 * ("a" + "b")
|
||||
> print strerror(x)
|
||||
Bad arguments for +
|
||||
|
||||
LIMITS
|
||||
none
|
||||
|
||||
LIBRARY
|
||||
none
|
||||
|
||||
SEE ALSO
|
||||
error, iserror, errno
|
Reference in New Issue
Block a user