chiark / gitweb /
26f8ce8f6d963be5f6740bb6e775d3be87ad9b29
[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 }