-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.c
More file actions
32 lines (29 loc) · 1.15 KB
/
main.c
File metadata and controls
32 lines (29 loc) · 1.15 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* main.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: sanmetol <sanmetol@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/07 20:49:24 by sanmetol #+# #+# */
/* Updated: 2023/03/20 16:24:20 by sanmetol ### ########.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include "libft.h"
int main(void)
{
int ascii;
int line;
ascii = 0;
line = 1;
while (ascii <= 127)
{
printf ("%d. %d, ", ascii, ft_isprint(ascii));
if (line % 8 == 0 && line >= 5)
printf ("\n");
ascii++;
line++;
}
printf ("%d", ft_strlen("hola"));
}