strerror.c

Archipelago/slave/strerror.c · 281 B

From the archive archipelago-1.1.tar.gz

Download the archive   « Back to the archive contents

#include "config.h"
/*#include "kiwi/kiwi.h"
#include "kiwi/string.h"
*/

extern int      sys_nerr;
extern char *   sys_errlist[];

char *strerror( int num )
{

    if( num > sys_nerr || num < 0 ) {
        return( "Unknown error code" );
    }
    return( sys_errlist[ num ] );
}

Site Stats

Snippets: 1791
Codebases: 571