aboutsummaryrefslogtreecommitdiff
path: root/newlib/libc/ctype/_toupper.c
blob: db4e00dd04a7dc03c557c6a3208685f6426acf97 (plain)
1
2
3
4
5
6
7
8
9
#include <_ansi.h>
#include <ctype.h>

#undef _toupper
int
_DEFUN(_toupper,(c),int c)
{
  return islower(c) ? c - 'a' + 'A' : c;
}