-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
29 lines (26 loc) · 1.07 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_toupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sabraham <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/07/29 23:47:21 by sabraham #+# #+# */
/* Updated: 2023/07/31 23:01:19 by sabraham ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_toupper(int s)
{
if (s >= 'a' && s <= 'z')
{
s = s - 32;
return (s);
}
return (s);
}
// int main(void)
// {
// char b= 'a';
// printf("%c\n", ft_toupper(b));
// }