branch update for HEAD-2003021201
[reactos.git] / lib / crtdll / 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 void abort()
9 {
10         fflush(NULL);
11         fcloseall();
12         raise(SIGABRT);
13         _write(stderr->_file, msg, sizeof(msg)-1);
14         exit(3);
15 }
16