summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_printf_use_flags.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:29:59 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:29:59 +0200
commitf92d78184cb8ff31648a623914f714baa27ee2e7 (patch)
treeaa7aab141efe14fb9d15900d67f9e202c8c89b40 /libft/src/ft_printf_use_flags.c
parentin progress (diff)
download42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.tar.gz
42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.tar.bz2
42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.tar.xz
42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.tar.zst
42-minishell-f92d78184cb8ff31648a623914f714baa27ee2e7.zip
Normized
Diffstat (limited to 'libft/src/ft_printf_use_flags.c')
-rw-r--r--libft/src/ft_printf_use_flags.c21
1 files changed, 9 insertions, 12 deletions
diff --git a/libft/src/ft_printf_use_flags.c b/libft/src/ft_printf_use_flags.c
index 562d499..c0f7377 100644
--- a/libft/src/ft_printf_use_flags.c
+++ b/libft/src/ft_printf_use_flags.c
@@ -13,8 +13,7 @@
#include <libft.h>
#include <stdlib.h>
-static void
- ft_printf_noflags(const char *format,
+static void ft_printf_noflags(const char *format,
int pos,
va_list arg,
t_printflist *pflist)
@@ -22,11 +21,10 @@ static void
ft_printf_process(format + pos, arg, pflist);
}
-static void
- ft_printf_withflags(const char *format,
- int pos,
- va_list arg,
- t_printflist *pflist)
+static void ft_printf_withflags(const char *format,
+ int pos,
+ va_list arg,
+ t_printflist *pflist)
{
ft_memdel((void**)&pflist->fullflag);
pflist->fullflag = ft_printf_get_flags(format, pos, pflist);
@@ -34,11 +32,10 @@ static void
ft_printf_process(format + pos, arg, pflist);
}
-int
- ft_printf_flags(const char *format,
- int pos,
- va_list arg,
- t_printflist *pflist)
+int ft_printf_flags(const char *format,
+ int pos,
+ va_list arg,
+ t_printflist *pflist)
{
int plen;