X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=functions%2Fstring%2Fstrerror.c;fp=functions%2Fstring%2Fstrerror.c;h=0000000000000000000000000000000000000000;hb=94cec7268060142c361c882c0a54d4b0052a591c;hp=1cd820cc869946f9e2c3e5a53550d540de0843c0;hpb=c8f799d852e3698468a78954d82588e841cc0b70;p=pdclib.old diff --git a/functions/string/strerror.c b/functions/string/strerror.c deleted file mode 100644 index 1cd820c..0000000 --- a/functions/string/strerror.c +++ /dev/null @@ -1,30 +0,0 @@ -/* ---------------------------------------------------------------------------- - * $Id$ - * ---------------------------------------------------------------------------- - * Public Domain C Library - http://pdclib.sourceforge.net - * This code is Public Domain. Use, modify, and redistribute at will. - * --------------------------------------------------------------------------*/ - -#include - -char * strerror( int errcode ) -{ - switch ( errcode ) - { - case 0: - return "no error"; - break; - case EDOM: - return "domain error"; - break; - case EILSEQ: - return "illegal sequence"; - break; - case ERANGE: - return "range error"; - break; - default: - return "unknown error"; - break; - } -}