sync
This commit is contained in:
30
C_Piscine_C_04/git/ex01/main.c
Normal file
30
C_Piscine_C_04/git/ex01/main.c
Normal file
@@ -0,0 +1,30 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* main.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: gbaconni <marvin@42lausanne.ch> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2021/08/13 09:13:32 by gbaconni #+# #+# */
|
||||
/* Updated: 2021/08/13 09:20:53 by gbaconni ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <unistd.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
void ft_putstr(char *str);
|
||||
|
||||
int main(void)
|
||||
{
|
||||
char str[32];
|
||||
|
||||
printf("Input String [max 31]: ");
|
||||
scanf("%s", str);
|
||||
ft_putstr(str);
|
||||
write(1, "\n", 1);
|
||||
printf("str=%s (ft_putstr)\n", str);
|
||||
return (0);
|
||||
}
|
||||
Reference in New Issue
Block a user