This commit is contained in:
root
2026-02-23 00:04:03 +00:00
commit fadb328b05
17 changed files with 573 additions and 0 deletions
+35
View File
@@ -0,0 +1,35 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_str_is_printable.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sgongas <sgongas@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2026/02/22 23:22:09 by sgongas #+# #+# */
/* Updated: 2026/02/22 23:25:39 by sgongas ### ########.fr */
/* */
/* ************************************************************************** */
int ft_str_is_printable(char *str)
{
int i;
i = 0;
while (str[i])
{
if (str[i] >= 32 && str[i] <= 126)
i++;
else
return (0);
}
return (1);
}
// #include <stdio.h>
// int main(void)
// {
// printf("%d", ft_str_is_printable("test"));
// return (0);
// }
// "\x01"