/* ************************************************************************** */ /* */ /* ::: o_ :::::: ::: */ /* ft_isascii.c :+: / :+::+: :+: */ /* +:+ > +:++:+ +:+ */ /* By: whaffman +#+ +:+ +#++#++:++#++ */ /* +#+ +#+#+ +#++#+ +#+ \o/ */ /* Created: 2024/10/10 17:00:16 by whaffman #+#+# #+#+# #+# #+# | */ /* Updated: 2024/10/10 17:00:16 by whaffman ### ### ### ### / \ */ /* */ /* ************************************************************************** */ #include "libft.h" /** * @brief ft_isalnum() checks if a character is an ascii character * * @param c contains an integer of the character to be tested. * @return int returns c if the int codes for an digit or an ascii * character. */ int ft_isascii(int c) { return (0 <= c && 127 >= c); }