aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2019-10-29 05:20:35 +0100
committerCharles <sircharlesaze@gmail.com>2019-10-29 05:20:35 +0100
commit66ed3290deb97057875aa7372741595e3fa290a6 (patch)
treec2123744a3775f274a07bab24841690498e36fad /main.c
parent87bce91050b56915dcf5964f6f66d5f47299e7f3 (diff)
downloadft_printf-66ed3290deb97057875aa7372741595e3fa290a6.tar.gz
ft_printf-66ed3290deb97057875aa7372741595e3fa290a6.tar.bz2
ft_printf-66ed3290deb97057875aa7372741595e3fa290a6.zip
String conversion refactor, malloc protection
Diffstat (limited to 'main.c')
-rw-r--r--main.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/main.c b/main.c
index 2b04c77..c869075 100644
--- a/main.c
+++ b/main.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/28 04:25:09 by cacharle #+# #+# */
-/* Updated: 2019/10/29 00:04:49 by cacharle ### ########.fr */
+/* Updated: 2019/10/29 05:18:05 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -55,9 +55,11 @@ int main()
ft_printf("overwrite neg |%*-1d|\n", 0, 43);
printf("overwrite neg |%*-1d|\n", 0, 43);
- /* ft_printf("pointer field width |%15p|\n", &test); */
- /* printf("pointer field width |%15p|\n", &test); */
- /* ft_printf("pointer precision |%.15p|\n", &test); */
- /* printf("pointer precision |%.15p|\n", &test); */
+ ft_printf("pointer field width |%15p|\n", &test);
+ printf("pointer field width |%15p|\n", &test);
+ ft_printf("pointer precision |%.15p|\n", &test);
+ printf("pointer precision |%.15p|\n", &test);
+ ft_printf("pointer precision/width |%20.15p|\n", &test);
+ printf("pointer precision/width |%20.15p|\n", &test);
return 0;
}