-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
28 lines (25 loc) · 1.09 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ana-lda- <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/10 19:29:43 by ana-lda- #+# #+# */
/* Updated: 2024/06/26 15:32:57 by ana-lda- ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
if (c >= 97 && c <= 122)
c = c -32;
return (c);
}
/*#include <stdio.h>
#include <ctype.h>
int main(void)
{
printf("%i\n", ft_toupper('a'));
printf("%i\n", toupper('a'));
}*/