src/compat/strcasecmp.h File Reference

#include "src/main.h"
#include <ctype.h>
Include dependency graph for strcasecmp.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

int egg_strcasecmp (const char *, const char *)
int egg_strncasecmp (const char *, const char *, size_t)

Function Documentation

int egg_strcasecmp ( const char *  ,
const char *   
)

Definition at line 29 of file strcasecmp.c.

00030 {
00031   while ((*s1) && (*s2) && (toupper(*s1) == toupper(*s2))) {
00032     s1++;
00033     s2++;
00034   }
00035   return toupper(*s1) - toupper(*s2);
00036 }

int egg_strncasecmp ( const char *  ,
const char *  ,
size_t   
)

Definition at line 40 of file strcasecmp.c.

00041 {
00042   if (!n)
00043     return 0;
00044   while (--n && (*s1) && (*s2) && (toupper(*s1) == toupper(*s2))) {
00045     s1++;
00046     s2++;
00047   }
00048   return toupper(*s1) - toupper(*s2);
00049 }


Generated on 7 Sep 2016 for Eggdrop by  doxygen 1.6.1