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