libft/char/ft_isprint.c
Raphael 1c607fced3
refactor(char): normed the char functions
- Norme was not passed after the modification but corrected now
2025-09-04 11:48:50 +02:00

24 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/06 14:06:53 by rparodi #+# #+# */
/* Updated: 2025/09/04 11:41:49 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
/**
* @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);
}