summaryrefslogtreecommitdiff
path: root/libpsx/src/libc/error.c
blob: 6863b2fd2207725305c950b79b6f0df51130800b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <stdio.h>
#include <string.h>

static char strerror_not_implemented[64];

char *strerror(int errnum)
{
	strerror_r(errnum, strerror_not_implemented, 64);
	
	return strerror_not_implemented;
}

int strerror_r(int errnum, char *strerrbuf, size_t buflen)
{
	snprintf(strerrbuf, buflen,
		"strerror(%d)", errnum);
	
	return 0;
}