-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathft_str_is_uppercase.c
executable file
·30 lines (27 loc) · 1.07 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
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str_is_uppercase.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: kbensado <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2015/10/16 13:55:17 by kbensado #+# #+# */
/* Updated: 2015/12/28 12:22:44 by kbensado ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
int ft_str_is_uppercase(char *str)
{
int i;
i = 0;
if (!str)
return (1);
while (str[i])
{
if (str[i] >= 'A' && str[i] <= 'Z')
i++;
else
return (0);
}
return (1);
}