-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathft_strtoupper.c
More file actions
24 lines (22 loc) · 1.01 KB
/
ft_strtoupper.c
File metadata and controls
24 lines (22 loc) · 1.01 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strtoupper.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dbrandao <dbrandao@student.42sp.org.br> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2022/07/04 20:43:04 by dbrandao #+# #+# */
/* Updated: 2022/07/04 21:11:43 by dbrandao ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strtoupper(char *str)
{
int i;
i = -1;
while (str[++i])
{
if (str[i] > 96 && str[i] < 123)
str[i] -= 32;
}
return (str);
}