base c lib without external lib

This commit is contained in:
David Gailleton
2025-11-05 19:25:22 +01:00
parent e06b98052a
commit 697e044d7e
19 changed files with 445 additions and 13 deletions

18
ft_isprint.c Normal file
View File

@@ -0,0 +1,18 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/05 11:14:13 by dgaillet #+# #+# */
/* Updated: 2025/11/05 11:16:46 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
int ft_isprint(int c)
{
if ((c >= 40 && c <= 126) || (c >= 7 && c <= 13))
return (1);
return (0);
}