20#include "../../../libft.h" 
   21#include "utils/utils.h" 
   24int handle_sequence(
const char **format, va_list args, 
int *fd, 
int total);
 
   36static void do_segment(
const char **format, va_list args, 
int *fd, 
int *total)
 
   45        print_len = seq_start - *format;
 
   46    if (print_len && seq_start != *format
 
   47        && !
wrap_err(write(*fd, *format, print_len), total))
 
 
  261    va_start(args, format);
 
  263    while (total > -1 && *format)
 
 
int wrap_err(int n, int *total)
Wrapper for handling functions that return a positive integer on success and -1 on failure....
 
int ft_printf(const char *format,...)
Prints and formats a variable set of arguments.
 
int handle_sequence(const char **format, va_list args, int *fd, int total)
Prepares and executes a sequence.
 
static void do_segment(const char **format, va_list args, int *fd, int *total)
Process a section of the format string, whether it contains text to print and / or format specifiers.
 
char * ft_strchr(const char *s, int c)
Finds first occurence of character c in string s.
 
size_t ft_strlen(const char *str)
Get length of str.