. use library function to parse memory string
[minix3.git] / lib / ansi / strcoll.c
blob0d2ddda96ff438a22d70a114b04a7d905163b4b0
1 /*
2 * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
3 * See the copyright notice in the ACK home directory, in the file "Copyright".
4 */
5 /* $Header$ */
7 #include <string.h>
8 #include <locale.h>
10 int
11 strcoll(register const char *s1, register const char *s2)
13 while (*s1 == *s2++) {
14 if (*s1++ == '\0') {
15 return 0;
18 return *s1 - *--s2;