1
0
mirror of https://github.com/cc65/cc65.git synced 2024-11-18 00:07:21 +00:00
cc65/libsrc/common/perror.c

25 lines
281 B
C
Raw Normal View History

/*
* perror.c
*
* Ullrich von Bassewitz, 01.10.1998
*/
#include <stdio.h>
#include <string.h>
#include <errno.h>
void perror (const char* msg)
{
if (msg) {
fprintf (stderr, "%s: ", msg);
}
fprintf (stderr, "%s\n", strerror (errno));
}