Libft
42 Libft library documentation
Loading...
Searching...
No Matches
ft_isascii.c File Reference

Go to the source code of this file.

Functions

int ft_isascii (int c)
 Checks whether a character value is a valid ASCII byte.
 

Function Documentation

◆ ft_isascii()

int ft_isascii ( int  c)

Checks whether a character value is a valid ASCII byte.

Parameters
cCharacter value to test.
Returns
Non-zero if c is in [0, 127], 0 otherwise.

Definition at line 19 of file ft_isascii.c.

20{
21 return ((unsigned int)c < 128);
22}