about summary refs log tree commit diff homepage
path: root/runtime/klee-libc/tolower.c
blob: a311f2010418694573049afa8ff3b1ff35f5dc5e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/*===-- tolower.c ---------------------------------------------------------===//
//
//                     The KLEE Symbolic Virtual Machine
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===*/

int tolower(int ch) {
  if ( (unsigned int)(ch - 'A') < 26u )
    ch -= 'A' - 'a';
  return ch;
}