MGE General C Library - Full Internal Documentation v1.8.4
Library of general C functions.
Loading...
Searching...
No Matches
error.c File Reference

Functions handling mge_errno. More...

#include <netdb.h>
#include <stdio.h>
#include <string.h>
#include "internal.h"
#include <libmgec/libmgec.h>
#include <libmgec/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.
 

Variables

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

Detailed Description

Functions handling mge_errno.

Functions supporting the use of the mge_errno system.

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

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

Version
v1.1.0 ==== 02/11/2023

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.