aboutsummaryrefslogtreecommitdiff
path: root/ft_putstr_fd.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_putstr_fd.c')
-rw-r--r--ft_putstr_fd.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/ft_putstr_fd.c b/ft_putstr_fd.c
index d7c2756..7053650 100644
--- a/ft_putstr_fd.c
+++ b/ft_putstr_fd.c
@@ -1,7 +1,19 @@
+/* ************************************************************************** */
+/* */
+/* ::: :::::::: */
+/* ft_putstr_fd.c :+: :+: :+: */
+/* +:+ +:+ +:+ */
+/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
+/* +#+#+#+#+#+ +#+ */
+/* Created: 2019/10/07 10:40:15 by cacharle #+# #+# */
+/* Updated: 2019/10/07 10:40:22 by cacharle ### ########.fr */
+/* */
+/* ************************************************************************** */
+
#include <unistd.h>
-void ft_putstr_fd(char const *s, int fd)
+void ft_putstr_fd(char const *s, int fd)
{
- while (*s)
- write(fd, s++, 1);
+ while (*s)
+ write(fd, s++, 1);
}