From d732047d6681b1f64f7907d1c0413abdaab76050 Mon Sep 17 00:00:00 2001 From: Charles Date: Sat, 6 Jul 2019 08:42:30 +0200 Subject: c03 and begin c04 --- c04/ex01/ft_putstr.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 c04/ex01/ft_putstr.c (limited to 'c04/ex01') diff --git a/c04/ex01/ft_putstr.c b/c04/ex01/ft_putstr.c new file mode 100644 index 0000000..e98b5a0 --- /dev/null +++ b/c04/ex01/ft_putstr.c @@ -0,0 +1,22 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_putstr.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/06 07:22:38 by cacharle #+# #+# */ +/* Updated: 2019/07/06 08:34:03 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include + +void ft_putstr(char *str) +{ + while (*str) + { + write(1, str, 1); + str++; + } +} -- cgit