1 /*
2  *  Copyright (C) 1991, 1992  Linus Torvalds
3  */
4 
5 #include <xen/string.h>
6 
7 /**
8  * strcmp - Compare two strings
9  * @cs: One string
10  * @ct: Another string
11  */
12 int (strcmp)(const char *cs, const char *ct)
13 {
14 	unsigned char *csu = (unsigned char *)cs;
15 	unsigned char *ctu = (unsigned char *)ct;
16 	int res;
17 
18 	while (1) {
19 		if ((res = *csu - *ctu++) != 0 || !*csu++)
20 			break;
21 	}
22 
23 	return res;
24 }
25 
26 /*
27  * Local variables:
28  * mode: C
29  * c-file-style: "BSD"
30  * c-basic-offset: 8
31  * tab-width: 8
32  * indent-tabs-mode: t
33  * End:
34  */
35