aboutsummaryrefslogtreecommitdiff
path: root/convert_percent.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-11-06 00:02:56 +0100
committerCharles <sircharlesaze@gmail.com>2019-11-06 00:02:56 +0100
commitdafee6410a4ecd7400a83adf84ded3621f30a365 (patch)
tree401c4169f4c2bf849d33a6a0201ab47d0f0f7782 /convert_percent.c
parente6d8f543af4c1a45f30495b90a3912b1c75f2be7 (diff)
downloadft_printf-dafee6410a4ecd7400a83adf84ded3621f30a365.tar.gz
ft_printf-dafee6410a4ecd7400a83adf84ded3621f30a365.tar.bz2
ft_printf-dafee6410a4ecd7400a83adf84ded3621f30a365.zip
Refactored parsing to handle alone '%'
- renamed a few variables - added join_free* to libft - normed everything but ft_printf.c
Diffstat (limited to 'convert_percent.c')
-rw-r--r--convert_percent.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/convert_percent.c b/convert_percent.c
index 0833748..492fa42 100644
--- a/convert_percent.c
+++ b/convert_percent.c
@@ -6,12 +6,10 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/30 23:23:27 by cacharle #+# #+# */
-/* Updated: 2019/10/30 23:23:56 by cacharle ### ########.fr */
+/* Updated: 2019/11/05 23:44:07 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
-#include <stdarg.h>
-#include "libft.h"
#include "header.h"
char *convert_percent(va_list ap, t_pformat *pformat)
@@ -20,6 +18,6 @@ char *convert_percent(va_list ap, t_pformat *pformat)
(void)ap;
str = ft_strdup("%");
- str = handle_padding(pformat, str);
+ str = handle_width(pformat, str);
return (str);
}