if ftprintf send error it write it into the file and on stdout

This commit is contained in:
Hugo LAMY
2020-02-26 19:30:26 +01:00
parent 4692903f8e
commit 9c627da9cb
7 changed files with 102 additions and 91 deletions

View File

@@ -72,6 +72,8 @@ char *ft_convert(va_list ap, char *type)
return (conv_u(s[0], va_arg(ap, unsigned int)));
if ((s = ft_strchrset(type, "s")))
return (conv_u(s[0], va_arg(ap, unsigned long int)));
if (ft_strchr(type, '%'))
return(ft_strdup("%"));
if (ft_strchrset(type, "efgn"))
return (NULL);
return (NULL);