Sha256: 975a29c426cc9b8d7da641e7795134d02093e3e471410792d88ccc691f914122

Contents?: true

Size: 286 Bytes

Versions: 130

Compression:

Stored size: 286 Bytes

Contents

/* public domain rewrite of strerror(3) */

extern int sys_nerr;
extern char *sys_errlist[];

static char msg[50];

char *
strerror(int error)
{
    if (error <= sys_nerr && error > 0) {
	return sys_errlist[error];
    }
    sprintf(msg, "Unknown error (%d)", error);
    return msg;
}

Version data entries

130 entries across 130 versions & 2 rubygems

Version Path
rhodes-2.0.0.beta1 platform/shared/ruby/missing/strerror.c
rhodes-1.5.4 platform/shared/ruby/missing/strerror.c
rhodes-1.5.3 platform/shared/ruby/missing/strerror.c
rhodes-1.5.2 platform/shared/ruby/missing/strerror.c
rhodes-1.5.1 platform/shared/ruby/missing/strerror.c
rhodes-1.5.0 platform/shared/ruby/missing/strerror.c
rhodes-1.4.2 platform/shared/ruby/missing/strerror.c
rhodes-1.4.1 platform/shared/ruby/missing/strerror.c
rhodes-1.4.0 platform/shared/ruby/missing/strerror.c
rhodes-1.2.2 platform/shared/ruby/missing/strerror.c