Libft
42 Libft library documentation
Loading...
Searching...
No Matches
ft_putendl_fd.c File Reference
+ Include dependency graph for ft_putendl_fd.c:

Go to the source code of this file.

Functions

void ft_putendl_fd (char *s, int fd)
 Writes a string followed by a newline to a file descriptor.
 

Function Documentation

◆ ft_putendl_fd()

void ft_putendl_fd ( char *  s,
int  fd 
)

Writes a string followed by a newline to a file descriptor.

Does nothing when s is NULL.

Parameters
sString to write.
fdDestination file descriptor.

Definition at line 23 of file ft_putendl_fd.c.

24{
25 if (!s)
26 return ;
27 ft_putstr_fd(s, fd);
28 write(fd, "\n", 1);
29}
void ft_putstr_fd(char *s, int fd)
Writes a string to a file descriptor.

References ft_putstr_fd().

+ Here is the call graph for this function: