/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_isprint.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: rparodi +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2023/11/06 14:06:53 by rparodi #+# #+# */ /* Updated: 2024/10/31 12:50:37 by rparodi ### ########.fr */ /* */ /* ************************************************************************** */ #include "libft.h" /** * @brief Check if the character is printable * * @param c the character * @return the character if can be print or 0 if not */ int ft_isprint(int c) { if (c >= 32 && c <= 126) return (c); return (0); }