diff options
Diffstat (limited to 'ft_putstr_fd.c')
| -rw-r--r-- | ft_putstr_fd.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ft_putstr_fd.c b/ft_putstr_fd.c new file mode 100644 index 0000000..d7c2756 --- /dev/null +++ b/ft_putstr_fd.c @@ -0,0 +1,7 @@ +#include <unistd.h> + +void ft_putstr_fd(char const *s, int fd) +{ + while (*s) + write(fd, s++, 1); +} |
