-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strupcase.c
29 lines (26 loc) · 1.05 KB
/
ft_strupcase.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_strupcase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sbin-jef <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/05/08 20:38:28 by sbin-jef #+# #+# */
/* Updated: 2024/05/09 11:27:37 by sbin-jef ### ########.fr */
/* */
/* ************************************************************************** */
#include <unistd.h>
char *ft_strupcase(char *str)
{
int x;
x = 0;
while (str[x] != '\0')
{
if (str[x] >= 'a' && str[x] <= 'z')
{
str[x] -= 32;
}
x++;
}
return (str);
}