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