-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
22 lines (20 loc) · 997 Bytes
/
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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: mbouderr <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/10/27 03:33:51 by mbouderr #+# #+# */
/* Updated: 2022/10/27 03:33:57 by mbouderr ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
if (c >= 97 && c <= 122)
{
c = c - 32;
}
return (c);
}