libft
src
ft_tolower.c
Go to the documentation of this file.
1
/* ************************************************************************** */
3
/* */
4
/* ::: :::::::: */
5
/* ft_tolower.c :+: :+: :+: */
6
/* +:+ +:+ +:+ */
7
/* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8
/* +#+#+#+#+#+ +#+ */
9
/* Created: 2019/09/05 00:25:09 by unite #+# #+# */
10
/* Updated: 2020/07/16 02:44:07 by unite ### ########.fr */
11
/* */
12
/* ************************************************************************** */
13
14
#include "
libft.h
"
15
20
int
ft_tolower
(
int
c)
21
{
22
if
(c >=
'A'
&& c <=
'Z'
)
23
return
(c +
'a'
-
'A'
);
24
else
25
return
(c);
26
}
libft.h
ft_tolower
int ft_tolower(int c)
Replicates behaviour of tolower from libc.
Definition:
ft_tolower.c:20
Generated by
1.8.16