push_swap/libft/src/string/ft_isascii.c
2024-11-04 13:11:17 +01:00

26 lines
1.2 KiB
C

/* ************************************************************************** */
/* */
/* ::: o_ :::::: ::: */
/* ft_isascii.c :+: / :+::+: :+: */
/* +:+ > +:++:+ +:+ */
/* By: whaffman <whaffman@student.codam.nl> +#+ +:+ +#++#++:++#++ */
/* +#+ +#+#+ +#++#+ +#+ \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);
}