Error Codes
When possible the c_libs library uses enums to manage error checking.
The following are enums that are used throughout this library. The
various enums described in this Section are stored in the admin.h
header file.
ErrorCodes
The ErrorCodes enum handles generic warnings.
typedef enum {
Success,
MemoryAllocationError,
NullStrError,
OutOfBoundsError,
} ErrorCodes;
Attributes
Success: Succesfull function execution with no errors.MemoryAllocationError: Memory allocation error duringmalloc,callocorreallocfunction call.NullStrError: The pointer to a string in astrstruct isNULL.OutOfBoundsError: Pointer to memory that is out of allocated bounds.