-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_toupper.c
30 lines (26 loc) · 1.1 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: edegraev <edegraev@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/07 09:55:58 by edegraev #+# #+# */
/* Updated: 2023/11/16 09:21:03 by edegraev ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int c)
{
if (c >= 97 && c <= 122)
return (c - 32);
return (c);
}
// #include <stdio.h>
// int main(void)
// {
// char c;
// c = 'a';
// printf("%c\n", ft_toupper(c));
// return (0);
// }