chiark / gitweb /
[PATCH] fix klibc's broken strlcpy/strlcat
[elogind.git] / klibc / klibc / perror.c
1 /*
2  * perror.c
3  */
4
5 #include <errno.h>
6 #include <stdio.h>
7 #include <string.h>
8
9 void perror(const char *s)
10 {
11   int e = errno;
12   fprintf(stderr, "%s: %s\n", s, strerror(e));
13 }