*** empty log message ***
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@407 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
21
appl/ftp/common/strerror.c
Normal file
21
appl/ftp/common/strerror.c
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
#ifdef HAVE_CONFIG_H
|
||||||
|
#include <config.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
|
RCSID("$Id$");
|
||||||
|
|
||||||
|
static char emsg[1024];
|
||||||
|
|
||||||
|
char*
|
||||||
|
strerror(int eno)
|
||||||
|
{
|
||||||
|
if(eno < 0 || eno >= sys_nerr)
|
||||||
|
sprintf(emsg, "Error %d occurred.", eno);
|
||||||
|
else
|
||||||
|
strcpy(emsg, sys_errlist[eno]);
|
||||||
|
|
||||||
|
return emsg;
|
||||||
|
}
|
Reference in New Issue
Block a user