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