| 123456789101112131415161718192021222324 |
- /* ************************************************************************** */
- /* */
- /* ::: :::::::: */
- /* ft_isupper.c :+: :+: :+: */
- /* +:+ +:+ +:+ */
- /* By: bchanot <bchanot@students.42.fr> +#+ +:+ +#+ */
- /* +#+#+#+#+#+ +#+ */
- /* Created: 2016/08/09 23:42:37 by bchanot #+# #+# */
- /* Updated: 2016/09/28 13:07:54 by bchanot ### ########.fr */
- /* */
- /* ************************************************************************** */
- #include "libft.h"
- int ft_isupper(char c)
- {
- if (c >= 65 && c <= 90)
- return (1);
- else if (c >= 97 && c <= 122)
- return (0);
- else if (c >= 48 && c <= 57)
- return (-1);
- return (-42);
- }
|