summaryrefslogtreecommitdiffstats
path: root/usr/klibc/perror.c
blob: 317705743371013510960b7d886e855829f22d67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * perror.c
 */

#include <errno.h>
#include <stdio.h>
#include <string.h>

void perror(const char *s)
{
	int e = errno;
	fprintf(stderr, "%s: %s\n", s, strerror(e));
}