]> git.sur5r.net Git - cc65/blob - libsrc/common/perror.c
814152e293368a2c30751847948f3b45613520b0
[cc65] / libsrc / common / perror.c
1 /*
2  * perror.c
3  *
4  * Ullrich von Bassewitz, 01.10.1998
5  */
6
7
8
9 #include <stdio.h>
10 #include <string.h>
11 #include <errno.h>
12
13
14
15 void perror (const char* msg)
16 {                         
17     if (msg) {                
18         fprintf (stderr, "%s: ", msg);
19     }
20     fprintf (stderr, "%s\n", strerror (errno));
21 }
22
23
24