MGE General C Library - API Documentation  v1.6.8
Library of general C functions.
Errors

Messages

Error message numbers are #defined in the mge-errno.h header file. The error number is used as the array element in the errno_desc array.

Usage

On error mge_errno should be set to a value from the header file. If it is set to MGE_ERRNO or MGE_GAI then sav_errno is set to errno or the getaddrinfo error code respectively.

Helper Functions

mge_strerror()

The mge_strerror function returns a string describing the error number given in the supplied parameter. If the error number is MGE_ERRNO or MGE_GAI then it uses the value held in sav_errno to retrieve the relevant errno message or getaddrinfo error message.