Difference between revisions of "STRERROR()"
From Lianjapedia
Barrymavin (Talk | contribs) m (→Example) |
|||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
==Purpose== | ==Purpose== | ||
Function to return description for latest or specified Operating System dependent error number | Function to return description for latest or specified Operating System dependent error number | ||
− | |||
==Syntax== | ==Syntax== | ||
STRERROR([<expN>]) | STRERROR([<expN>]) | ||
− | |||
==See Also== | ==See Also== | ||
− | [[CERROR()]], [[DOSERROR()]], [[ERRNO()]], [[ERROR()]], [[MESSAGE()]] | + | [[CERROR()]], [[DOSERROR()]], [[ERRNO()]], [[ERROR()]], [[MESSAGE()]] |
− | + | ||
==Description== | ==Description== | ||
The STRERROR() function returns the description for the Operating System dependent error number for the last error encountered. If the optional <expN> is specified, STRERROR() will return the description for that error number. | The STRERROR() function returns the description for the Operating System dependent error number for the last error encountered. If the optional <expN> is specified, STRERROR() will return the description for that error number. | ||
− | |||
==Example== | ==Example== | ||
<code lang="recital"> | <code lang="recital"> | ||
if errno()>0 | if errno()>0 | ||
− | + | errstr = strerror( errno() ) | |
− | + | ||
endif | endif | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
− | [[Category:Error Handling | + | [[Category:Error Handling]] |
− | + |
Latest revision as of 20:30, 16 May 2018
Contents
Purpose
Function to return description for latest or specified Operating System dependent error number
Syntax
STRERROR([<expN>])
See Also
CERROR(), DOSERROR(), ERRNO(), ERROR(), MESSAGE()
Description
The STRERROR() function returns the description for the Operating System dependent error number for the last error encountered. If the optional <expN> is specified, STRERROR() will return the description for that error number.
Example
if errno()>0 errstr = strerror( errno() ) endif