File: strcasecmp.c

package info (click to toggle)
abiword 0.7.7-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 20,604 kB
  • ctags: 18,358
  • sloc: cpp: 88,791; ansic: 66,296; sh: 7,777; makefile: 3,397; xml: 687; perl: 361; awk: 273; sed: 36; csh: 28
file content (13 lines) | stat: -rw-r--r-- 243 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <ctype.h>
#include <string.h>

int strcasecmp(const char *s1, const char *s2)
	{
	int i;
	if (strlen(s1) != strlen(s1))
		return(1);
	for (i=0;i<strlen(s1);i++)
		if ( toupper(s1[i]) != toupper(s2[i]) )
			return(1);
	return(0);		
	}