libft
ft_putstr_fd.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* ft_putstr_fd.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2019/09/05 13:55:36 by unite #+# #+# */
10 /* Updated: 2020/07/16 02:53:24 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "libft.h"
15 #include <unistd.h>
16 
23 void ft_putstr_fd(char const *s, int fd)
24 {
25  write(fd, s, ft_strlen(s));
26 }
ft_strlen
size_t ft_strlen(const char *s)
Replicates behaviour of strlen from libc.
Definition: ft_strlen.c:20
ft_putstr_fd
void ft_putstr_fd(char const *s, int fd)
Writes a string to a file descriptor.
Definition: ft_putstr_fd.c:23
libft.h