libft_testing/ft_isprint_test.c
2025-10-03 21:21:01 +02:00

25 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_isprint_test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/10/03 18:27:44 by lalgarra #+# #+# */
/* Updated: 2025/10/03 20:17:16 by lalgarra ### ########.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include<stdio.h>
int main(void)
{
int p1;
for (p1 = 0; p1 < 256; p1++)
{
printf("'%c' (%i); isprint(c)!=0: %i\r\n", p1, p1, ft_isprint(p1)!=0);
}
return (0);
}