-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_toupper.c
More file actions
22 lines (19 loc) · 1.01 KB
/
ft_toupper.c
File metadata and controls
22 lines (19 loc) · 1.01 KB
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: jados-sa <jados-sa@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/10/29 18:53:08 by jados-sa #+# #+# */
/* Updated: 2024/10/29 18:53:12 by jados-sa ### ########.fr */
/* */
/* ************************************************************************** */
// convert letter to uppercase
#include "libft.h"
int ft_toupper(int c)
{
if (ft_isalpha(c) && c > 96)
return (c - 32);
return (c);
}