Embedded Artistry libc
C Standard Library Support for Bare-metal Systems
toupper.c
Go to the documentation of this file.
1
// Pulled from musl libc, locale support removed
2
3
#include <
ctype.h
>
4
5
int
toupper
(
int
c)
6
{
7
if
(
islower
(c))
8
{
9
{
10
return
c & 0x5f;
11
}
12
}
13
return
c;
14
}
toupper
int toupper(int c)
Converts the given character to lowercase.
Definition:
toupper.c:5
ctype.h
islower
int islower(int ch)
Checks if the given character is classified as a lowercase character.
Definition:
islower.c:5
src
ctype
toupper.c
Generated by
1.8.15