Add main.* and remove .gitignore
This commit is contained in:
32
C_Piscine_C_02/git/ex11/main.c
Normal file
32
C_Piscine_C_02/git/ex11/main.c
Normal file
@@ -0,0 +1,32 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* 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);
|
||||
}
|
||||
Reference in New Issue
Block a user