summaryrefslogtreecommitdiff
path: root/klibc/klibc/perror.c
blob: 45585cd57739eed2f97cc8796526429d24ee18ef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
/*
 * perror.c
 */

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

void perror(const char *s)
{
  fprintf(stderr, "%s: error %d\n", s, errno);
}