-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_toupper.c
More file actions
20 lines (18 loc) · 1.01 KB
/
Copy pathft_toupper.c
File metadata and controls
20 lines (18 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: alyildiz <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/05/06 07:08:59 by alyildiz #+# #+# */
/* Updated: 2023/05/06 07:09:11 by alyildiz ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int chr)
{
if (chr >= 0b01100001 && chr <= 0b01111010)
chr -= 32;
return (chr);
}