27 lines
1.2 KiB
C
27 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_isalpha.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: hulamy <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2019/11/25 13:55:15 by hulamy #+# #+# */
|
|
/* Updated: 2019/11/25 13:55:17 by hulamy ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include "libft.h"
|
|
|
|
#define SPACE ' '
|
|
#define FORM_FEED '\f'
|
|
#define NEWLINE '\n'
|
|
#define CARRIAGE_RETURN '\r'
|
|
#define HORIZONTAL_TAB '\t'
|
|
#define VERTICAL_TAB '\v'
|
|
|
|
int ft_isspace(int c)
|
|
{
|
|
return (c == SPACE || c == FORM_FEED || c == NEWLINE ||
|
|
c == CARRIAGE_RETURN || c == HORIZONTAL_TAB || c == VERTICAL_TAB);
|
|
}
|