minishell
ft_isspace.c File Reference
#include "ft_is.h"
Include dependency graph for ft_isspace.c:

Go to the source code of this file.

Functions

int ft_isspace (int c)
 
int ft_isspcornil (int c)
 

Function Documentation

◆ ft_isspace()

int ft_isspace ( int  c)

Definition at line 15 of file ft_isspace.c.

16 {
17  unsigned char uc;
18 
19  uc = (unsigned char)c;
20  return (
21  uc == CHAR_HTAB
22  || uc == CHAR_LF
23  || uc == CHAR_VTAB
24  || uc == CHAR_FF
25  || uc == CHAR_CR
26  || uc == CHAR_WS
27  );
28 }
#define CHAR_HTAB
Definition: ft_is.h:16
#define CHAR_WS
Definition: ft_is.h:21
#define CHAR_CR
Definition: ft_is.h:20
#define CHAR_LF
Definition: ft_is.h:17
#define CHAR_FF
Definition: ft_is.h:19
#define CHAR_VTAB
Definition: ft_is.h:18
Here is the caller graph for this function:

◆ ft_isspcornil()

int ft_isspcornil ( int  c)

Definition at line 30 of file ft_isspace.c.

31 {
32  unsigned char uc;
33 
34  uc = (unsigned char)c;
35  return (
36  uc == '\0'
37  || ft_isspace(c)
38  );
39 }
int ft_isspace(int c)
Definition: ft_isspace.c:15
Here is the call graph for this function:
Here is the caller graph for this function: