fplayer
C99 Falcon Sequence (fseq) file player for Light-O-Rama hardware (like xLights)
Loading...
Searching...
No Matches
errcode.c File Reference

Error code definitions and message strings. More...

#include "errcode.h"
Include dependency graph for errcode.c:

Functions

const char * FP_strerror (int err)
 Returns the error message string for the given error code.
 

Variables

static const char * FP_errstr [FP_ECOUNT]
 Error message strings for each error code.
 

Detailed Description

Error code definitions and message strings.

Function Documentation

◆ FP_strerror()

const char * FP_strerror ( int err)

Returns the error message string for the given error code.

Parameters
errthe error code to get the message for, must be in the range of [0, FP_ECOUNT), negative values are treated as positive
Returns
the error message string, otherwise "FP_EUNKNOWN" if the error code is out of range
Here is the caller graph for this function:

Variable Documentation

◆ FP_errstr

const char* FP_errstr[FP_ECOUNT]
static
Initial value:
= {
"FP_EOK", "FP_ERANGE", "FP_EINVLARG", "FP_ESYSCALL",
"FP_ENOMEM", "FP_EPTHREAD", "FP_EZSTD", "FP_EAUDINIT",
"FP_EAUDPLAY", "FP_EINVLBIN", "FP_EINVLFMT", "FP_ENOSDEV",
"FP_ESDEVINIT",
}

Error message strings for each error code.