Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int strcmp1(const char *s1, const char *s2)
- {
- for ( ; *s1 == *s2; s1++, s2++)
- if (*s1 == '\0' || *s1 == '\n')
- return 0;
- return ((*(unsigned char *)s1 < *(unsigned char *)s2) ? -1 : +1);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement