-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strupcase.c
25 lines (23 loc) · 1.03 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strupcase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: knzeng-e <knzeng-e@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/10/22 15:54:06 by knzeng-e #+# #+# */
/* Updated: 2015/10/22 15:54:12 by knzeng-e ### ########.fr */
/* */
/* ************************************************************************** */
char *ft_strupcase(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
{
if (str[i] <= 'z' && str[i] >= 'a')
str[i] -= ('a' - 'A');
i++;
}
return (str);
}