mirror of
https://github.com/DavidGailleton/42-ft_printf.git
synced 2026-04-28 22:34:34 +02:00
some fix on printf
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libft.h"
|
||||
#include "ft_printf_bonus.h"
|
||||
#include "libft.h"
|
||||
|
||||
int print_str(t_arg *arg, char *str)
|
||||
{
|
||||
@@ -28,7 +28,7 @@ int print_str(t_arg *arg, char *str)
|
||||
return (-10000);
|
||||
return (count + 6);
|
||||
}
|
||||
if (arg->dot > (int) ft_strlen(str) || arg->dot < 0)
|
||||
if (arg->dot > (int)ft_strlen(str) || arg->dot < 0)
|
||||
arg->dot = ft_strlen(str);
|
||||
if (arg->padding > 0)
|
||||
count += print_chars(arg->padding - arg->dot, ' ');
|
||||
|
||||
Reference in New Issue
Block a user