-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_toupper.c
32 lines (28 loc) · 1.22 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
32
/* ************************************************************************** */
/* */
/* :::::::: */
/* ft_toupper.c :+: :+: */
/* +:+ */
/* By: sramos <[email protected]> +#+ */
/* +#+ */
/* Created: 2023/10/03 16:51:20 by sramos #+# #+# */
/* Updated: 2023/10/13 11:09:54 by sramos ######## odam.nl */
/* */
/* ************************************************************************** */
// #include <ctype.h>
// #include <stdio.h>
#include "libft.h"
int ft_toupper(int c)
{
if (c >= 'a' && c <= 'z')
c = c - 32;
return (c);
}
// int main(void)
// {
// char c;
// c = 'B';
// printf("%c in uppercase is represented as %c\n", c, toupper(c));
// printf("%c in uppercase is represented as %c", c, ft_toupper(c));
// return (0);
// }