ReactOS  0.4.15-dev-2700-g4b4ffa9
amsg.c File Reference
#include <precomp.h>
Include dependency graph for amsg.c:

Go to the source code of this file.

Functions

int _aexit_rtn (int exitcode)
 
void _amsg_exit (int errnum)
 

Variables

static char__rt_err_msg []
 

Function Documentation

◆ _aexit_rtn()

int _aexit_rtn ( int  exitcode)

Definition at line 38 of file amsg.c.

39 {
40  _exit(exitcode);
41  return 0;
42 }
void _exit(int exitcode)
Definition: _exit.c:25

◆ _amsg_exit()

void _amsg_exit ( int  errnum)

Definition at line 47 of file amsg.c.

48 {
49  if ((errnum >=0) && (errnum < sizeof(__rt_err_msg)/sizeof(__rt_err_msg[0])))
50  fprintf(stderr, "runtime error - %s\n", __rt_err_msg[errnum]);
51  else
52  fprintf(stderr, "runtime error - %d\n", errnum);
53  _exit(-1);
54 }
_Check_return_opt_ _CRTIMP int __cdecl fprintf(_Inout_ FILE *_File, _In_z_ _Printf_format_string_ const char *_Format,...)
void _exit(int exitcode)
Definition: _exit.c:25
FILE * stderr
static char * __rt_err_msg[]
Definition: amsg.c:13

Referenced by __declspec(), _purecall(), and msvcrt_get_thread_data().

Variable Documentation

◆ __rt_err_msg

char* __rt_err_msg[]
static
Initial value:
=
{
"stack overflow",
"null pointer assignment",
"floating point not loaded",
"integer divide by 0",
"not enough space for arguments",
"not enough space for environment",
"abnormal program termination",
"not enough space for thread data",
"unexpected multithread lock error",
"unexpected heap error",
"unable to open console device",
"non-continuable exception",
"invalid exception disposition",
"not enough space for _onexit/atexit table",
"pure virtual function call",
"not enough space for stdio initialization",
"not enough space for lowio initialization",
}

Definition at line 13 of file amsg.c.

Referenced by _amsg_exit().