33 lines
1.3 KiB
C
33 lines
1.3 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* main.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2021/08/11 11:24:31 by gbaconni #+# #+# */
|
|
/* Updated: 2021/08/12 11:44:53 by gbaconni ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
#include <stdlib.h>
|
|
#include <string.h>
|
|
|
|
void ft_putstr_non_printable(char *str);
|
|
|
|
int main(void)
|
|
{
|
|
const char *test = "Coucou\ntu vas bien ?";
|
|
char str[256];
|
|
|
|
printf("Input [max 255]: ");
|
|
scanf("%255[^\n]", str);
|
|
printf("str=%s\n", str);
|
|
ft_putstr_non_printable(str);
|
|
printf("test=%s\n", test);
|
|
ft_putstr_non_printable((char *)test);
|
|
return (0);
|
|
}
|