diff options
Diffstat (limited to 'c04/ex01/ft_putstr.c')
| -rw-r--r-- | c04/ex01/ft_putstr.c | 22 |
1 files changed, 22 insertions, 0 deletions
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 <charles.cabergs@gmail.com> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/06 07:22:38 by cacharle #+# #+# */ +/* Updated: 2019/07/06 08:34:03 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include <unistd.h> + +void ft_putstr(char *str) +{ + while (*str) + { + write(1, str, 1); + str++; + } +} |
