-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
executable file
·25 lines (23 loc) · 1 KB
/
ft_toupper.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: anhigo-s <anhigo-s@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/07/27 14:51:11 by anhigo-s #+# #+# */
/* Updated: 2023/02/23 16:57:44 by anhigo-s ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
if (c >= 'a' && c <= 'z')
{
return (c - ('a' - 'A'));
}
else
{
return (c);
}
}