/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_toupper.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rbousset +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/14 17:07:16 by rbousset #+# #+# */ /* Updated: 2020/02/14 17:07:16 by rbousset ### ########lyon.fr */ /* */ /* ************************************************************************** */ static int ft_islower(int c) { if (c >= 97 && c <= 122) return (1); return (0); } int ft_toupper(int c) { if (ft_islower(c)) return (c - 32); return (c); }