20#include "handlers/handlers.h"
void pre_char(va_list args, t_sequence *seq)
Preprocess the character specifier by retrieving the character, setting s_sequence::total_len to 1 an...
void pre_uint(va_list args, t_sequence *seq)
Preprocess the unsigned integer specifier by retrieving the argument in the appropriate size,...
void pre_uoct(va_list args, t_sequence *seq)
Preprocess the unsigned octal specifier by retrieving the argument in the appropriate size,...
void pre_uhex(va_list args, t_sequence *seq)
Preprocess the unsigned hexadecimal specifier by retrieving the argument in the appropriate size,...
void pre_ptr(va_list args, t_sequence *seq)
Preprocess the pointer specifier by retrieving the address, setting the s_sequence::total_len with u_...
void pre_string(va_list args, t_sequence *seq)
Preprocess the string specifier by retrieving the address, setting s_sequence::data to the address,...
void pre_int(va_list args, t_sequence *seq)
Preprocess the signed integer specifier by retrieving the argument in the appropriate size,...
void pre_percent(va_list args, t_sequence *seq)
Preprocess the percent specifier by setting s_sequence::data to %, s_sequence::total_len to 1,...
void pre_set_fd(va_list args, t_sequence *seq)
Preprocess the set file descriptor specifier by retrieving the argument, ensuring that s_subspec::min...
void pre_store(va_list args, t_sequence *seq)
Preprocess the store specifier by retrieving the address argument in the appropriate size dependent o...
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 ...
static void init_sequence(t_sequence *sequence)
Sets initial values for a s_sequence that are not always set elsewhere.
Holds information regarding the current format specifier sequence.
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.
int pad_len
Number of characters to pad.