minus and 0 flags WIP

This commit is contained in:
David Gailleton
2025-11-19 21:02:04 +01:00
parent 66878549eb
commit bd1c66d86f
15 changed files with 317 additions and 57 deletions

View File

@@ -0,0 +1,30 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_create_arg_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/19 15:52:18 by dgaillet #+# #+# */
/* Updated: 2025/11/19 18:29:53 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include <stdlib.h>
#include "ft_printf_bonus.h"
t_arg *ft_create_arg(void)
{
t_arg *arg;
arg = malloc(sizeof(t_arg));
if (!arg)
return (NULL);
arg->minus = 0;
arg->zero = 0;
arg->dot = 0;
arg->hash = 0;
arg->space = 0;
arg->plus = 0;
return (arg);
}