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-5.5.18 platform/shared/ruby/missing/strerror.c
rhodes-5.5.17 platform/shared/ruby/missing/strerror.c
rhodes-5.5.15 platform/shared/ruby/missing/strerror.c
rhodes-5.5.0.22 platform/shared/ruby/missing/strerror.c
rhodes-5.5.2 platform/shared/ruby/missing/strerror.c
rhodes-5.5.0.7 platform/shared/ruby/missing/strerror.c
rhodes-5.5.0.3 platform/shared/ruby/missing/strerror.c
rhodes-5.5.0 platform/shared/ruby/missing/strerror.c
tauplatform-1.0.3 platform/shared/ruby/missing/strerror.c
tauplatform-1.0.2 platform/shared/ruby/missing/strerror.c
tauplatform-1.0.1 platform/shared/ruby/missing/strerror.c
rhodes-3.5.1.12 platform/shared/ruby/missing/strerror.c
rhodes-3.3.5 platform/shared/ruby/missing/strerror.c
rhodes-3.4.2 platform/shared/ruby/missing/strerror.c
rhodes-3.3.4 platform/shared/ruby/missing/strerror.c
rhodes-3.3.3 platform/shared/ruby/missing/strerror.c
rhodes-3.3.3.beta.4 platform/shared/ruby/missing/strerror.c
rhodes-3.3.3.beta.3 platform/shared/ruby/missing/strerror.c
rhodes-3.3.3.beta.2 platform/shared/ruby/missing/strerror.c
rhodes-3.3.3.beta.1 platform/shared/ruby/missing/strerror.c