-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strupcase.c
executable file
·27 lines (24 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
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_strupcase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: nvienot <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/09/12 21:04:29 by nvienot #+# #+# */
/* Updated: 2018/11/21 21:30:09 by nvienot ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
char *ft_strupcase(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
{
if (str[i] >= 97 && str[i] <= 122)
str[i] = str[i] - 32;
i++;
}
return (str);
}