Doxygen Source Code Documentation
Main Page Alphabetical List Data Structures File List Data Fields Globals Search
strerror.c
Go to the documentation of this file.00001
00002
00003
00004
00005 #ifdef HAVE_CONFIG_H
00006 # include "config.h"
00007 #endif
00008 #ifdef __cplusplus
00009 extern "C" {
00010 #endif
00011
00012 char *
00013 strerror(int errno)
00014 {
00015 extern int sys_nerr;
00016 extern char *sys_errlist[];
00017 if (errno < 0 || errno >= sys_nerr)
00018 return (char *)"bad error number";
00019 else
00020 return sys_errlist[errno];
00021 }
00022
00023 #ifdef __cplusplus
00024 }
00025 #endif