Back to index

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

Go to the source code of this file.


int strncasecmp (const char *a, const char *b, size_t n)

Function Documentation

int strncasecmp ( const char *  a,
const char *  b,
size_t  n 

Definition at line 13 of file strncasecmp.c.

       while (n && (*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: