15#include "../utils/utils.h"
16#include "../../../libft/libft.h"
20int handle_sequence(
const char **format, va_list args,
int *fd,
int total)
void identify_sequence(va_list args, t_sequence *seq)
Initialize a s_sequence and determine which specifier it needs to handle, and runs the preprocessing ...
int handle_sequence(const char **format, va_list args, int *fd, int total)
Prepares and executes a sequence.
int wrap_err(int n, int *total)
Wrapper for handling functions that return a positive integer on success and -1 on failure....
size_t ft_strlen(const char *str)
Get length of str.
Holds information regarding the current format specifier sequence.
int(* process)(struct s_sequence, int *, int)
Function to use for processing this sequence's value.
char specifier
The specifier character for this sequence.
int total_len
Total number of characters after padding.
char * sign
String containing the prefix for the value. Set during preprocessing for a format handler.