maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_putstr_fd.c File Reference
#include "libft.h"
Include dependency graph for ft_putstr_fd.c:

Go to the source code of this file.

Functions

void ft_putstr_fd (char *s, int fd)
 

Function Documentation

◆ ft_putstr_fd()

void ft_putstr_fd ( char *  s,
int  fd 
)

Definition at line 20 of file ft_putstr_fd.c.

21{
22 if (s)
23 write(fd, s, ft_strlen(s));
24}
size_t ft_strlen(const char *s)
Definition ft_strlen.c:15

References ft_strlen().

Referenced by builtin_echo(), builtin_env(), ft_print_str(), ft_putendl_fd(), ft_puterror(), ft_putnbr_fd(), handle_exec_errors(), and handle_get_shell_variable().

Here is the call graph for this function:
Here is the caller graph for this function: