MGE General C Library - Full Internal Documentation  v1.6.8
Library of general C functions.
error.c File Reference

Functions handling mge_errno. More...

#include <errno.h>
#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include "internal.h"
#include <libmgec.h>
#include <mge-errno.h>
Include dependency graph for error.c:

Functions

const char * mge_strerror (const int mge_err)
 Return a string describing the error number. More...
 

Variables

static char err_msg [80]
 Storage for 'unknown error' string. More...
 

Detailed Description

Functions handling mge_errno.

Functions supporting the use of the mge_errno system.

Author
Copyright (C) 2017-2019, 2021, 2022 Mark Grant

Released under the GPLv3 only.
SPDX-License-Identifier: GPL-3.0-only

Version
v1.0.8 ==== 10/06/2022

Function Documentation

◆ mge_strerror()

const char* mge_strerror ( const int  mge_err)

Return a string describing the error number.

If necessary look to errno, gai_errno etc.

Parameters
mge_errThe error number to look up.
Returns
The error message.

Variable Documentation

◆ err_msg

char err_msg[80]
static

Storage for 'unknown error' string.