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