all flags setup, some fixes is needed

This commit is contained in:
David Gailleton
2025-11-20 16:54:00 +01:00
parent bd1c66d86f
commit 24887c810c
12 changed files with 181 additions and 63 deletions

20
test.c
View File

@@ -1,12 +1,22 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* test.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/20 16:11:53 by dgaillet #+# #+# */
/* Updated: 2025/11/20 16:19:29 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include <stdio.h>
#include "ft_printf_bonus.h"
#include <limits.h>
int main(void)
{
printf("===\t-\t===\n\n");
printf("%d - ", printf("...%#x...\n", 1358454));
printf("%d\n\n", ft_printf("...%#x...\n", 1358454));
printf("%d - ", printf("...%-1u...\n", 0));
printf("%d\n\n", ft_printf("...%-1u...\n", 0));
printf("%d - ", printf("...%8.5i...\n", 34));
printf("%d\n\n", ft_printf("...%8.5i...\n", 34));
}