mirror of
https://github.com/guezoloic/libft.git
synced 2026-01-25 01:34:15 +00:00
feat: add ft_isprint function
This commit is contained in:
6
ft_isprint.c
Normal file
6
ft_isprint.c
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
#include "libft.h"
|
||||||
|
|
||||||
|
int ft_isprint(int c)
|
||||||
|
{
|
||||||
|
return ((32 <= c && c <= 126));
|
||||||
|
}
|
||||||
9
libft.h
9
libft.h
@@ -2,7 +2,7 @@
|
|||||||
#define LIBFT_A
|
#define LIBFT_A
|
||||||
|
|
||||||
/*
|
/*
|
||||||
The isalpha() function tests for
|
The ft_isalpha() function tests for
|
||||||
any character for which isupper(3) or
|
any character for which isupper(3) or
|
||||||
islower(3) is true.
|
islower(3) is true.
|
||||||
*/
|
*/
|
||||||
@@ -32,4 +32,11 @@ int ft_isalnum(int c);
|
|||||||
*/
|
*/
|
||||||
int ft_isascii(int c);
|
int ft_isascii(int c);
|
||||||
|
|
||||||
|
/*
|
||||||
|
The ft_isprint() function tests for
|
||||||
|
any printing character, including
|
||||||
|
space (‘ ’).
|
||||||
|
*/
|
||||||
|
int ft_isprint(int c);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
Reference in New Issue
Block a user