blob: 4ad2892a28fa0765b996a23a263e2e7862f8d11b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
/* Copyright (C) 1996,2004 Robert de Bath <robert@debath.thenet.co.uk>
* This file is part of the Linux-8086 C library and is distributed
* under the GNU Library General Public License.
*/
#include <string.h>
#include "error_list.h"
char *
strerror(err)
int err;
{
static char retbuf[20];
if( err > 0 && err <= sys_nerr )
return sys_errlist[err];
strcpy(retbuf, "Error ");
strcpy(retbuf+6, itoa(err));
return retbuf;
}
|