manpagez: man pages & more
info gawk
Home | html | info | man

File: gawk.info,  Node: Updating ERRNO,  Next: Requesting Values,  Prev: Printing Messages,  Up: Extension API Description

17.4.8 Updating 'ERRNO'
-----------------------

The following functions allow you to update the 'ERRNO' variable:

'void update_ERRNO_int(int errno_val);'
     Set 'ERRNO' to the string equivalent of the error code in
     'errno_val'.  The value should be one of the defined error codes in
     '', and 'gawk' turns it into a (possibly translated)
     string using the C 'strerror()' function.

'void update_ERRNO_string(const char *string);'
     Set 'ERRNO' directly to the string value of 'ERRNO'.  'gawk' makes
     a copy of the value of 'string'.

'void unset_ERRNO(void);'
     Unset 'ERRNO'.

© manpagez.com 2000-2025
Individual documents may contain additional copyright information.