e0ae1955ebd4cd1d16e9883187313726f86491f9
[reactos.git] / lib / msvcrt / stdlib / abort.c
1 #include <msvcrt/stdlib.h>
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/io.h>
4 #include <msvcrt/signal.h>
5
6 char *msg ="Abort\n\r";
7
8 /*
9  * @implemented
10  */
11 void abort()
12 {
13         fflush(NULL);
14         fcloseall();
15         raise(SIGABRT);
16         _write(stderr->_file, msg, sizeof(msg)-1);
17         exit(3);
18 }
19