From 838baa28f428a8d5b6a73225daf5b6b09aebed9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20GUEZO?= Date: Mon, 29 Sep 2025 19:53:19 +0200 Subject: [PATCH] feat: add comments and define macros --- libft.h | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/libft.h b/libft.h index 69ae0d3..07841ce 100644 --- a/libft.h +++ b/libft.h @@ -1,4 +1,35 @@ -int ft_isalpha(const char c); +#ifndef LIBFT_A +#define LIBFT_A + +/* + The isalpha() function tests for + any character for which isupper(3) or + islower(3) is true. + */ +int ft_isalpha(int c); +/* + The ft_isdigit() function tests + for a decimal digit character. + Regardless of locale, this + includes the following characters + only: '0' '1' '2' '3' '4' '5' '6' + '7' '8' '9' + */ int ft_isdigit(int c); + +/* + The ft_isalnum() function tests + for any character for which + isalpha(3) or isdigit(3) is true. + */ int ft_isalnum(int c); + +/* + The ft_isascii() function tests + for an ASCII character, which is + any character between 0 and octal + 0177 inclusive. + */ int ft_isascii(int c); + +#endif \ No newline at end of file