Testing isprint()
This commit is contained in:
parent
61486dac3a
commit
26fe85d7ac
3 changed files with 29 additions and 4 deletions
25
isprint_test.c
Normal file
25
isprint_test.c
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* isprint_test.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: lalgarra <lalgarra@student.42madrid.com> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2025/10/03 18:27:44 by lalgarra #+# #+# */
|
||||
/* Updated: 2025/10/03 18:39:12 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, isprint(p1)!=0);
|
||||
}
|
||||
return (0);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue