-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
22 lines (20 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lstorey <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/25 09:55:32 by lstorey #+# #+# */
/* Updated: 2023/11/21 14:44:18 by lstorey ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(char c)
{
if (c > 64 && c < 91)
return (c);
if (c > 96 && c < 123)
c = c - 32;
return (c);
}