22#include "../sequence.h"
23#include "../../utils/utils.h"
24#include "../../utils/internal_types.h"
int u_len_base(t_ubiggest n, int base)
Determine the length of unsigned number n in base base.
t_ubiggest unsigned_arg(va_list args, t_lenmod lenmod)
Retrieves the next unsigned variable argument in the appropriate size dependent on the length modifie...
int u_print_base(t_sequence seq, int fd, char *base)
Writes an unsigned integer in base base on descriptor fd, with respect to the s_subspec::precision.
Holds information regarding the current format specifier sequence.
int(* process)(struct s_sequence, int *, int)
Function to use for processing this sequence's value.
t_ubiggest data
Retrieved variable argument.
t_subspec subspec
Holds subspecifier options for a format specifier.
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 precision
Minimum number of digits to be printed, or maximum characters for strings.
char force_decimal
1 or 0, whether or not to prefix octals or hexadecimals with their respective prefixes....
t_lenmod lenmod
Represents the length modifiers for a format specifier's variable argument.
char * pad_str
String used when padding values.
void pre_uoct(va_list args, t_sequence *seq)
Preprocess the unsigned octal specifier by retrieving the argument in the appropriate size,...
static int process_uoct(t_sequence seq, int *fd, int total)
Process the unsigned octal specifier by printing the number in base 8.