-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_toupper.c
More file actions
32 lines (29 loc) · 1.13 KB
/
ft_toupper.c
File metadata and controls
32 lines (29 loc) · 1.13 KB
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
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: simarcha <simarcha@student.42barcel> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/10 17:16:48 by simarcha #+# #+# */
/* Updated: 2024/01/12 11:09:18 by simarcha ### ########.fr */
/* */
/* ************************************************************************** */
//#include <ctype.h>
//#include <stdio.h>
#include "libft.h"
int ft_toupper(int c)
{
if (c > 96 && c < 123)
c -= 32;
return (c);
}
/*
int main(void)
{
int a;
a = 'z';
printf("Lib : %c\n", toupper(a));
printf("Moi : %c\n", ft_toupper(a));
return (0);
}*/