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

Go to the source code of this file.

Functions

int ft_print_str (char *str)
 

Function Documentation

◆ ft_print_str()

int ft_print_str ( char *  str)

Definition at line 15 of file ft_print_str.c.

16{
17 int len;
18
19 len = 0;
20 if (str == NULL)
21 {
22 ft_putstr_fd("(null)", 1);
23 return (6);
24 }
25 while (*str)
26 {
27 ft_putchar_fd(*str++, 1);
28 len++;
29 }
30 return (len);
31}
void ft_putchar_fd(char c, int fd)
void ft_putstr_fd(char *s, int fd)

References ft_putchar_fd(), and ft_putstr_fd().

Referenced by ft_formatssssss(), ft_print_int(), and ft_print_unsigned_dec().

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