blob: e95df928cb718058b18efe7aef94ffcb31bbf3a9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
/*===-- strcmp.c ----------------------------------------------------------===//
//
// The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===*/
int strcmp(const char *a, const char *b) {
while (*a && *a == *b)
++a, ++b;
return *(const unsigned char*)a - *(const unsigned char*)b;
}
|