about summary refs log tree commit diff homepage
path: root/runtime/klee-libc/strcmp.c
blob: 6b8c4e85dc3ecb2e577132cfea9848f4c97c1cca (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 *a - *b;
}