Ticket #219: wcscmp.diff
File wcscmp.diff, 758 bytes (added by , 15 years ago) |
---|
-
wcsncmp.c
53 53 return (0); 54 54 do { 55 55 if (*s1 != *s2++) { 56 /* XXX assumes wchar_t = int */ 57 return (*(const unsigned int *)s1 - 58 *(const unsigned int *)--s2); 56 return ((int)*s1 - (int)*--s2); 59 57 } 60 58 if (*s1++ == 0) 61 59 break; -
wcscmp.c
57 57 while (*s1 == *s2++) 58 58 if (*s1++ == 0) 59 59 return (0); 60 /* XXX assumes wchar_t = int */ 61 return (*(const unsigned int *)s1 - *(const unsigned int *)--s2); 60 return ((int)*s1 - (int)*--s2); 62 61 }