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

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