File: strcscmp.c

package info (click to toggle)
photopc 2.1-1
  • links: PTS
  • area: main
  • in suites: hamm, slink
  • size: 248 kB
  • ctags: 322
  • sloc: ansic: 3,232; makefile: 94
file content (10 lines) | stat: -rw-r--r-- 174 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
#include <ctype.h>

int strcasecmp(char *s1, char *s2) {
	while (*s1 && *s2 && (toupper(*s1) == toupper(*s2)))
	{
		s1++;
		s2++;
	}
	return (toupper(*s1) - toupper(*s2));
}