diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-10-13 13:55:07 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-10-13 14:40:48 +0200 |
| commit | d744e75aea3145927a4e725eb95496499dc54630 (patch) | |
| tree | 5a65c3c3de463e60b3f9de9f38ee73ea6b58b9d2 /header.h | |
| parent | 82981d4b0d04c0d52020a209c8322fa0eed012f7 (diff) | |
| download | ft_printf-d744e75aea3145927a4e725eb95496499dc54630.tar.gz ft_printf-d744e75aea3145927a4e725eb95496499dc54630.tar.bz2 ft_printf-d744e75aea3145927a4e725eb95496499dc54630.zip | |
Added precision and min field width wildcard
Diffstat (limited to 'header.h')
| -rw-r--r-- | header.h | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -35,7 +35,9 @@ typedef struct t_bool left_adjusted; t_bool zero_padding; int precision; + t_bool precision_wildcard; int min_field_width; + t_bool min_field_width_wildcard; t_conversion conversion; int len; } t_pformat; @@ -72,7 +74,7 @@ char *ft_itoa(int n); char *ft_strnew(int size); char *ft_strdup(char *s); char *ft_strcpy(char *dest, const char *src); -void add_padding(t_pformat *pformat, char *str); +void handle_padding(t_pformat *pformat, char *str); char *convert_to_str(t_pformat *pformat, va_list ap); void handle_precision(t_pformat *pformat, char *str); |
