-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_toupper.c
22 lines (20 loc) · 1.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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: meltremb <meltremb@student.42quebec> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/03/30 13:24:46 by meltremb #+# #+# */
/* Updated: 2022/04/05 13:06:50 by meltremb ### ########.fr */
/* */
/* ************************************************************************** */
/* Very high level function there. to use carefully not to get confused. /s
* makes lowercase letters uppercase. that's about it. */
#include"libft.h"
int ft_toupper(int c)
{
if (c >= 'a' && c <= 'z')
c = c - 32;
return (c);
}