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