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

Go to the source code of this file.

Functions

int ft_isprint (int c)
 Checks whether a character is printable in ASCII.
 

Function Documentation

◆ ft_isprint()

int ft_isprint ( int  c)

Checks whether a character is printable in ASCII.

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

Definition at line 19 of file ft_isprint.c.

20{
21 return ((unsigned int)(c - 32) < 95);
22}