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

@@ -1,24 +1,27 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* print_str.c :+: :+: :+: */
/* print_str_bonus.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: dgaillet <dgaillet@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/11/17 12:02:03 by dgaillet #+# #+# */
/* Updated: 2025/11/17 12:51:56 by dgaillet ### ########lyon.fr */
/* Updated: 2025/11/19 20:16:48 by dgaillet ### ########lyon.fr */
/* */
/* ************************************************************************** */
#include "libft.h"
#include "ft_printf_bonus.h"
int print_str(char *str)
int print_str(t_arg *arg, char *str)
{
if (!str)
{
ft_putstr_fd("(null)", 1);
return (6);
}
if (arg->arg)
ft_putstr_fd("", 1);
ft_putstr_fd(str, 1);
return (ft_strlen(str));
}