-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
31 lines (26 loc) · 1.12 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
24
25
26
27
28
29
30
31
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: hicunha- <hicunha-@student.42porto.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/10/04 00:17:46 by hicunha- #+# #+# */
/* Updated: 2023/10/04 00:17:46 by hicunha- ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
if (c >= 97 && c <= 122)
c -= 32;
return (c);
}
/*#include <unistd.h>
int main()
{
char a = 'a';
a = ft_toupper((unsigned char) a);
write(1, &a, 1);
return (0);
}*/