File: strcscmp.c

package info (click to toggle)
photopc 3.04-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 668 kB
  • ctags: 695
  • sloc: ansic: 5,876; sh: 330; makefile: 205
file content (11 lines) | stat: -rw-r--r-- 173 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
#include <ctype.h>

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