Changeset 607 for libcaca/trunk
- Timestamp:
- Mar 14, 2006, 7:10:30 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcaca/trunk/kernel/kernel.c
r589 r607 138 138 int strcasecmp(const char *s1, const char *s2) 139 139 { 140 while((*s1++) && (*s2++)) { 141 char c1 = UPPER(*s1); 142 char c2 = UPPER(*s2); 143 if((*s1)>(*s2)) 144 return (*s1)>(*s2); 145 if((*s1)<(*s2)) 146 return (*s1)<(*s2); 147 } 148 if((*s1==0) && (*s2==0)) 149 return 0; 150 151 return 1; /* FIXME */ 140 while(*s1 && *s2 && UPPER(*s1) == UPPER(*s2)) 141 { 142 s1++; 143 s2++; 144 } 145 146 /* Either *s1 or *s2 is 0 */ 147 return (int)UPPER(*s1) - (int)UPPER(*s2); 152 148 } 153 149
Note: See TracChangeset
for help on using the changeset viewer.