-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_strupr.c
29 lines (26 loc) · 1.08 KB
/
ft_strupr.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_strupr.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: ademenet <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/12/17 10:37:10 by ademenet #+# #+# */
/* Updated: 2015/12/17 10:40:46 by ademenet ### ########.fr */
/* */
/* ************************************************************************** */
#include <string.h>
#include "libft.h"
char *ft_strupr(char *s1)
{
int i;
i = 0;
if (!s1)
return (NULL);
while (s1[i] != '\0')
{
if (ft_islower(s1[i]))
s1[i] = ft_toupper(s1[i]);
}
return (s1);
}