Usermode/ld-acess - Added SysTimedSleep
[tpg/acess2.git] / Usermode / Libraries / libc.so_src / perror.c
1 /*
2  * Acess2 C Library
3  * - By John Hodge (thePowersGang)
4  *
5  * perror.c
6  * - perror() and friends
7  */
8 #include <errno.h>
9 #include <stdio.h>
10 #include <acess/sys.h>
11
12 void perror(const char *s)
13 {
14          int    errnum = errno;
15         _SysDebug("perror(): %s: Error (%i) %s", s, errnum, strerror(errnum));
16         fprintf(stderr, "%s: Error (%i) %s\n", s, errnum, strerror(errnum));
17 }

UCC git Repository :: git.ucc.asn.au