-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_str_is_uppercase.c
27 lines (24 loc) · 1.04 KB
/
ft_str_is_uppercase.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_str_is_uppercase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: knzeng-e <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2016/03/24 04:43:35 by knzeng-e #+# #+# */
/* Updated: 2016/03/26 12:45:15 by knzeng-e ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_str_is_uppercase(char *str)
{
int i;
i = 0;
while (str[i] != '\0')
{
if (!(ft_is_upper(str[i])))
return (0);
i++;
}
return (1);
}