|
libft
|
Handles numeric specifiers for ft_printf. More...
#include "libft.h"
Include dependency graph for format_and_print_numbers.c:Functions | |
| void | format_and_print_id (t_fmt *fmt, va_list *args, t_pf *pf) |
Handles d and i format specifiers for ft_printf. | |
| void | format_and_print_u (t_fmt *fmt, va_list *args, t_pf *pf) |
Handles u format specifier for ft_printf. | |
| void | format_and_print_x (t_fmt *fmt, va_list *args, int upper, t_pf *pf) |
Handles x and X format specifiers for ft_printf. | |
Handles numeric specifiers for ft_printf.
This file implements support for numeric format specifiers in ft_printf:
d / i (signed integers)u (unsigned integers)x / X (hexadecimal values)Each function retrieves the relevant argument from the va_list, converts it to a string, applies formatting (precision, padding, width), and delegates final output to print_formatted_number.