|
libft
|
Handles the # flag for hexadecimal output in ft_printf.
More...
#include "libft.h"
Include dependency graph for printf_alternative_form.c:Functions | |
| int | get_alternative_form_length (char specifier) |
Returns the prefix length for x and X when using # flag. | |
| char * | prepend_alternative_form (char *str, char specifier, t_pf *pf) |
Prepends the 0x or 0X prefix to a hexadecimal string. | |
| int | requires_alternative_form (char specifier, char *str) |
Checks whether the alternative form (#) should be applied. | |
Handles the # flag for hexadecimal output in ft_printf.
This module provides support for the alternative form (#) used with x and X format specifiers in ft_printf.
It defines:
0x / 0X).