Difference between revisions of "STRERROR()"

From Lianjapedia
Jump to: navigation, search
m (Example)
 
(One intermediate revision by one other user not shown)
Line 14: Line 14:
 
<code lang="recital">
 
<code lang="recital">
 
if errno()>0
 
if errno()>0
     err = errno()
+
     errstr = strerror( errno() )
 
endif
 
endif
 
</code>
 
</code>
Line 20: Line 20:
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Functions]]
 
[[Category:Functions]]
[[Category:Error Handling and Debugging]]
+
[[Category:Error Handling]]
[[Category:Error Handling and Debugging Functions]]
+

Latest revision as of 20:30, 16 May 2018

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