diff --git a/ex05/ft_putstr.c b/ex05/ft_putstr.c new file mode 100644 index 0000000..d60e6d6 --- /dev/null +++ b/ex05/ft_putstr.c @@ -0,0 +1,32 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_putstr.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: tischmid +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2023/03/18 03:11:53 by tischmid #+# #+# */ +/* Updated: 2023/03/19 04:55:09 by tischmid ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include + +void ft_putstr(char *str) +{ + int i; + + i = 0; + while (str[i] != 0) + write(1, &str[i++], 1); +} + +/* //// +#include + +int main(void) +{ + ft_putstr("Hello World\n"); + return (0); +} +*/ ////