b024c6e5c73abf9fb0c6a9d62015691e4ee7e12f
[reactos.git] / lib / crtdll / misc / amsg.c
1 /*
2  * COPYRIGHT:   See COPYING in the top level directory
3  * PROJECT:     ReactOS system libraries
4  * FILE:        lib/crtdll/misc/amsg.c
5  * PURPOSE:     Print runtime error messages
6  * PROGRAMER:   Boudewijn Dekker
7  * UPDATE HISTORY:
8  *              28/12/98: Created
9  */
10 #include <msvcrt/stdlib.h>
11 #include <msvcrt/stdio.h>
12 #include <msvcrt/string.h>
13
14 /*
15  * @implemented
16  */
17 int _aexit_rtn_dll(int exitcode)
18 {
19         _exit(exitcode);
20 }
21
22 /*
23  * @implemented
24  */
25 void _amsg_exit(int errnum)
26 {
27         fprintf(stderr,strerror(errnum));
28     _aexit_rtn_dll(-1);      
29 }
30