minishell
ft_toupper.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_toupper.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: kfujita <kfujita@student.42tokyo.jp> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2022/04/10 13:44:19 by kfujita #+# #+# */
9
/* Updated: 2022/04/26 00:30:01 by kfujita ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
13
#include "
ft_to.h
"
14
#include "../ft_is/ft_is.h"
15
16
int
ft_toupper
(
int
c)
17
{
18
if
(
ft_islower
(c))
19
return
(c + (
'A'
-
'a'
));
20
else
21
return
(c);
22
}
ft_islower
int ft_islower(int c)
Definition:
ft_islower.c:15
ft_to.h
ft_toupper
int ft_toupper(int c)
Definition:
ft_toupper.c:16
libft
ft_to
ft_toupper.c
Generated by
1.9.1