aboutsummaryrefslogtreecommitdiff
path: root/header.h
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-13 13:55:07 +0200
committerCharles <sircharlesaze@gmail.com>2019-10-13 14:40:48 +0200
commitd744e75aea3145927a4e725eb95496499dc54630 (patch)
tree5a65c3c3de463e60b3f9de9f38ee73ea6b58b9d2 /header.h
parent82981d4b0d04c0d52020a209c8322fa0eed012f7 (diff)
downloadft_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.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/header.h b/header.h
index 489e010..8c125bb 100644
--- a/header.h
+++ b/header.h
@@ -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);