Pristine Ack-5.5
[Ack-5.5.git] / modules / src / string / strcmp.c
1 /* $Id: strcmp.c,v 1.5 1994/06/24 11:22:53 ceriel Exp $ */
2 /*
3  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
4  * See the copyright notice in the ACK home directory, in the file "Copyright".
5  */
6 /*      return negative, zero or positive value if
7         resp. s < t, s == t or s > t
8 */
9
10 #include "ack_string.h"
11
12 int
13 strcmp(s, t)
14         register _CONST char *s, *t;
15 {
16         while (*s == *t++)
17                 if (*s++ == '\0')
18                         return 0;
19         return *s - *--t;
20 }