ERRNO.H

this header file defines a set of symbolic error codes and provides access to a special global variable called errno. This variable stores error codes when functions fail, allowing devs to check what went wrong. the function "perror()" from stdio.h is required to output the error codes produced.

ERROR CODES

  • EPERM (1): Operation not permitted

  • ENOENT (2): No such file or directory

  • EIO (5): Input/output error

  • ENOMEM (12): Out of memory

  • EACCES (13): Permission denied (Defined as macros for portability)

Last updated