Back to index

courier  0.68.2
strcasecmp.c File Reference
#include "config.h"
#include <ctype.h>

Go to the source code of this file.


int strcasecmp (const char *a, const char *b)

Function Documentation

int strcasecmp ( const char *  a,
const char *  b 

Definition at line 12 of file strcasecmp.c.

       while (*a || *b)
       int    ca=toupper(*a);
       int    cb=toupper(*b);

              if (ca < cb)  return (-1);
              if (ca > cb)  return (1);
       return (0);

Here is the call graph for this function: