summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_printf.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:18:30 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:18:30 +0200
commit4ede84d4ab98c75ed8655607fe64c205b79ed986 (patch)
tree6f9d5113400faf13a778de0f09c0203c7939b93f /libft/src/ft_printf.c
parentNorm update (diff)
download42-minishell-4ede84d4ab98c75ed8655607fe64c205b79ed986.tar.gz
42-minishell-4ede84d4ab98c75ed8655607fe64c205b79ed986.tar.bz2
42-minishell-4ede84d4ab98c75ed8655607fe64c205b79ed986.tar.xz
42-minishell-4ede84d4ab98c75ed8655607fe64c205b79ed986.tar.zst
42-minishell-4ede84d4ab98c75ed8655607fe64c205b79ed986.zip
libft norm in progress
Diffstat (limited to 'libft/src/ft_printf.c')
-rw-r--r--libft/src/ft_printf.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/libft/src/ft_printf.c b/libft/src/ft_printf.c
index ec1922f..1f63acf 100644
--- a/libft/src/ft_printf.c
+++ b/libft/src/ft_printf.c
@@ -16,8 +16,7 @@
#include <stdarg.h>
#include <unistd.h>
-static int
- ft_printf_return(t_printflist *pflist)
+static int ft_printf_return(t_printflist *pflist)
{
int ret;
@@ -28,14 +27,13 @@ static int
return (ret);
}
-int
- ft_printf(const char *format, ...)
+int ft_printf(const char *format, ...)
{
t_printflist *pflist;
va_list arg;
int pos;
- if (!format)
+ if (format == NULL)
return (-1);
if ((pos = ft_strlchr(format, '%')) < 0)
return (ft_putstr(format));