update for HEAD-2003091401
[reactos.git] / lib / msvcrt / stdio / perror.c
1 /* Copyright (C) 1994 DJ Delorie, see COPYING.DJ for details */
2 #include <msvcrt/stdio.h>
3 #include <msvcrt/string.h>
4 #include <msvcrt/errno.h>
5
6
7 #ifdef perror
8 #undef perror
9 void perror(const char *s);
10 #endif
11
12 /*
13  * @implemented
14  */
15 void perror(const char *s)
16 {
17   fprintf(stderr, "%s: %s\n", s, _strerror(NULL));
18 }
19
20 /*
21  * @implemented
22  */
23 void _wperror(const wchar_t *s)
24 {
25   fwprintf(stderr, L"%s: %S\n", s, _strerror(NULL));
26 }