GETERRNO(3)
β¨ NAME β¨
okay bestie, weβre looking at GETERRNO(3) from SchilyΒ΄s LIBRARY FUNCTIONS, and the NAME tea is simple: geterrno() β gets system error number. π
πΈ SYNOPSIS πΈ
int geterrno()
π DESCRIPTION π
geterrno() enables the programmer to find out exactly what the last failure was. This is often necessary since some subroutines just indicate success or failure, rather than directly return definitive error codes. π
For example, comerr() uses geterrno() to retrieve the last error so that an appropriate message can be printed. slay. β¨
π«Ά RETURNS π«Ά
It returns the error code for the last system error that occurred in the current process, e.g., after a call to fileopen() failed. π
π SEE ALSO π
β οΈ NOTES β οΈ
The value returned by geterrno() is only valid after the immediately preceding system call failed.
like, no cap β that validity window is right after the failure, bestie. π
made with π by Joerg Schilling Β· 2022/09/09 Β· from SchilyΒ΄s LIBRARY FUNCTIONS Β· page GETERRNO(3) β¨
π¦ where this page comes from
- opensuse-leap 16.0: libschily-devel-doc 2022.10.16-160000.2.2 Β· CDDL-1.0
- Copyright 1985-2020 J. Schilling
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms