Difference between revisions of "ERRNO()"
From Lianjapedia
Yvonne.milne (Talk | contribs) m (1 revision) |
Yvonne.milne (Talk | contribs) |
||
Line 1: | Line 1: | ||
− | |||
==Purpose== | ==Purpose== | ||
Function to return Operating System dependent error number | Function to return Operating System dependent error number | ||
− | |||
==Syntax== | ==Syntax== | ||
ERRNO() | ERRNO() | ||
− | |||
==See Also== | ==See Also== | ||
− | [[CERROR()]], [[DOSERROR()]], [[ERROR()]], [[MESSAGE() | + | [[CERROR()]], [[DOSERROR()]], [[ERROR()]], [[MESSAGE()]], [[STRERROR()]] |
− | + | ||
==Description== | ==Description== | ||
The ERRNO() function returns the Operating System dependent error number for the last error encountered. This is useful for revealing an Operating System error which may have caused an error reported by the ERROR() function. | The ERRNO() function returns the Operating System dependent error number for the last error encountered. This is useful for revealing an Operating System error which may have caused an error reported by the ERROR() function. | ||
− | |||
==Example== | ==Example== | ||
Line 20: | Line 15: | ||
if errno()>0 | if errno()>0 | ||
err = errno() | err = errno() | ||
− | |||
endif | endif | ||
</code> | </code> | ||
− | |||
− | |||
− | |||
[[Category:Documentation]] | [[Category:Documentation]] | ||
[[Category:Functions]] | [[Category:Functions]] | ||
[[Category:Error Handling and Debugging]] | [[Category:Error Handling and Debugging]] | ||
[[Category:Error Handling and Debugging Functions]] | [[Category:Error Handling and Debugging Functions]] |
Revision as of 09:00, 10 February 2012
Contents
Purpose
Function to return Operating System dependent error number
Syntax
ERRNO()
See Also
CERROR(), DOSERROR(), ERROR(), MESSAGE(), STRERROR()
Description
The ERRNO() function returns the Operating System dependent error number for the last error encountered. This is useful for revealing an Operating System error which may have caused an error reported by the ERROR() function.
Example
if errno()>0 err = errno() endif