aboutsummaryrefslogtreecommitdiff
path: root/printer.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-31 01:45:37 +0100
committerCharles <sircharlesaze@gmail.com>2019-10-31 01:45:37 +0100
commit0f6cd15b0c7ce2d4d0154ae027985ed640cd543f (patch)
treeb30dc09db7e42b1e1e9924995b608ee153daddc5 /printer.c
parentd63d6916249f5b40b81097854d8ca2c9d4d7d071 (diff)
downloadft_printf-0f6cd15b0c7ce2d4d0154ae027985ed640cd543f.tar.gz
ft_printf-0f6cd15b0c7ce2d4d0154ae027985ed640cd543f.tar.bz2
ft_printf-0f6cd15b0c7ce2d4d0154ae027985ed640cd543f.zip
Handle 'n' flag
Diffstat (limited to 'printer.c')
-rw-r--r--printer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/printer.c b/printer.c
index 4b5ae43..cfbf429 100644
--- a/printer.c
+++ b/printer.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/28 23:19:24 by cacharle #+# #+# */
-/* Updated: 2019/10/30 23:30:58 by cacharle ### ########.fr */
+/* Updated: 2019/10/30 23:56:21 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -57,6 +57,8 @@ char *convert_type(va_list ap, t_pformat *pformat)
return (convert_hex(ap, pformat));
if (pformat->type == '%')
return (convert_percent(ap, pformat));
+ if (pformat->type == 'n')
+ return (convert_written(ap, pformat));
return (NULL);
}