Back to index

cell-binutils  2.17cvs20070401
Typedefs | Functions | Variables
strcasecmp.c File Reference
#include <ansidecl.h>
#include <stddef.h>

Go to the source code of this file.


typedef unsigned char uc


int strcasecmp (const char *s1, const char *s2)


static const unsigned char charmap []

Typedef Documentation

typedef unsigned char uc

Definition at line 35 of file strcasecmp.c.

Function Documentation

int strcasecmp ( const char *  s1,
const char *  s2 

Definition at line 72 of file strcasecmp.c.

    register unsigned char u1, u2;

    for (;;) {
       u1 = (unsigned char) *s1++;
       u2 = (unsigned char) *s2++;
       if (charmap[u1] != charmap[u2]) {
           return charmap[u1] - charmap[u2];
       if (u1 == '\0') {
           return 0;

Variable Documentation

const unsigned char charmap[] [static]

Definition at line 36 of file strcasecmp.c.