invalid maps
This commit is contained in:
24
Oglibft/libft/srcs/ft_str_is_uppercase.c
Normal file
24
Oglibft/libft/srcs/ft_str_is_uppercase.c
Normal file
@@ -0,0 +1,24 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_str_is_uppercase.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/04/09 10:29:18 by tmaze #+# #+# */
|
||||
/* Updated: 2018/04/09 11:01:45 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
|
||||
int ft_str_is_uppercase(char *str)
|
||||
{
|
||||
int i;
|
||||
|
||||
i = 0;
|
||||
while (str[i])
|
||||
if (!ft_isupper(str[i++]))
|
||||
return (0);
|
||||
return (1);
|
||||
}
|
Reference in New Issue
Block a user