-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_toupper.c
23 lines (20 loc) · 1.04 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: xle-boul <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2021/10/02 23:33:13 by xle-boul #+# #+# */
/* Updated: 2021/10/17 15:47:52 by xle-boul ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
/* converts a lowercase letter to its capital counterpart */
int ft_toupper(int c)
{
if ('a' <= c && c <= 'z')
return ((c - 32));
else
return (c);
}