diff options
Diffstat (limited to 'exam_final/rendu/ft_putstr')
| -rwxr-xr-x | exam_final/rendu/ft_putstr/ft_putstr.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/exam_final/rendu/ft_putstr/ft_putstr.c b/exam_final/rendu/ft_putstr/ft_putstr.c new file mode 100755 index 0000000..3733591 --- /dev/null +++ b/exam_final/rendu/ft_putstr/ft_putstr.c @@ -0,0 +1,19 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_putstr.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: exam <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/07/26 10:05:51 by exam #+# #+# */ +/* Updated: 2019/07/26 10:07:27 by exam ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include <unistd.h> + +void ft_putstr(char *str) +{ + while (*str) + write(STDOUT_FILENO, str++, 1); +} |
