|
libft
|
Utilities for handling padding, width, and precision in ft_printf.
More...
#include "libft.h"
Include dependency graph for format_utils.c:Functions | |
| int | handle_precision_s (t_fmt *fmt, int len) |
| Applies precision limit to string length. | |
| int | handle_width (t_fmt *fmt, size_t len) |
| Computes the number of padding characters to apply. | |
| void | print_padding (int padding, char pad_char, t_pf *pf) |
| Prints a series of padding characters. | |
Utilities for handling padding, width, and precision in ft_printf.
This file contains utility functions used during format string interpretation in ft_printf. It manages the logic for:
These functions interact with the t_fmt structure (format specifier) and update output state through the t_pf structure.