summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:24:45 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:24:45 +0200
commit4bfa73662700068af84f59a8028118d0af991987 (patch)
treedfa74a6f615edbe9df8b6737411af10aa4f9d34f
parentAgain (diff)
download42-minishell-4bfa73662700068af84f59a8028118d0af991987.tar.gz
42-minishell-4bfa73662700068af84f59a8028118d0af991987.tar.bz2
42-minishell-4bfa73662700068af84f59a8028118d0af991987.tar.xz
42-minishell-4bfa73662700068af84f59a8028118d0af991987.tar.zst
42-minishell-4bfa73662700068af84f59a8028118d0af991987.zip
in progress
-rw-r--r--libft/src/ft_printf_put_none.c3
-rw-r--r--libft/src/ft_printf_put_precision.c6
-rw-r--r--libft/src/ft_printf_put_ptr.c3
-rw-r--r--libft/src/ft_printf_put_str.c3
-rw-r--r--libft/src/ft_printf_put_width.c13
5 files changed, 10 insertions, 18 deletions
diff --git a/libft/src/ft_printf_put_none.c b/libft/src/ft_printf_put_none.c
index 01fd672..29b456b 100644
--- a/libft/src/ft_printf_put_none.c
+++ b/libft/src/ft_printf_put_none.c
@@ -12,8 +12,7 @@
#include <libft.h>
-void
- ft_printf_put_none(t_printflist *pflist)
+void ft_printf_put_none(t_printflist *pflist)
{
ft_printf_put_width_pre(pflist);
ft_printf_put_width_post(pflist);
diff --git a/libft/src/ft_printf_put_precision.c b/libft/src/ft_printf_put_precision.c
index af7f7b7..3bc9883 100644
--- a/libft/src/ft_printf_put_precision.c
+++ b/libft/src/ft_printf_put_precision.c
@@ -13,8 +13,7 @@
#include <libft.h>
#include <stdlib.h>
-static int
- ft_printf_get_len(t_printflist *pflist)
+static int ft_printf_get_len(t_printflist *pflist)
{
if (pflist->conv == 'p' && pflist->precision > pflist->putlen)
return (pflist->precision - pflist->putlen + 2);
@@ -45,8 +44,7 @@ static int
** Used for %p, %d, %i, %u, %x and %X
*/
-int
- ft_printf_put_precision(t_printflist *pflist)
+int ft_printf_put_precision(t_printflist *pflist)
{
char *str;
int len;
diff --git a/libft/src/ft_printf_put_ptr.c b/libft/src/ft_printf_put_ptr.c
index bd50443..ba526d1 100644
--- a/libft/src/ft_printf_put_ptr.c
+++ b/libft/src/ft_printf_put_ptr.c
@@ -19,8 +19,7 @@
** For GCC: if (!p) { ft_putstr("(nil)"); return ; }
*/
-void
- ft_printf_put_p(va_list arg, t_printflist *pflist)
+void ft_printf_put_p(va_list arg, t_printflist *pflist)
{
unsigned long p;
char *str;
diff --git a/libft/src/ft_printf_put_str.c b/libft/src/ft_printf_put_str.c
index 6834fff..ba38211 100644
--- a/libft/src/ft_printf_put_str.c
+++ b/libft/src/ft_printf_put_str.c
@@ -15,8 +15,7 @@
#include <stdarg.h>
#include <inttypes.h>
-void
- ft_printf_put_s(va_list arg, t_printflist *pflist)
+void ft_printf_put_s(va_list arg, t_printflist *pflist)
{
char *str;
char *nstr;
diff --git a/libft/src/ft_printf_put_width.c b/libft/src/ft_printf_put_width.c
index e649a65..c6da76c 100644
--- a/libft/src/ft_printf_put_width.c
+++ b/libft/src/ft_printf_put_width.c
@@ -13,8 +13,7 @@
#include <libft.h>
#include <stdlib.h>
-static int
- ft_printf_get_len(t_printflist *pflist)
+static int ft_printf_get_len(t_printflist *pflist)
{
int len;
int width;
@@ -44,8 +43,7 @@ static int
** when needed using pflist->width
*/
-void
- ft_printf_put_width_pre(t_printflist *pflist)
+void ft_printf_put_width_pre(t_printflist *pflist)
{
char *str;
@@ -74,8 +72,7 @@ void
}
}
-void
- ft_printf_put_width_post(t_printflist *pflist)
+void ft_printf_put_width_post(t_printflist *pflist)
{
char *str;
@@ -83,7 +80,7 @@ void
- (pflist->precision - pflist->putlen) >= 0 && pflist->isreverse)
{
if (!(str = (char*)malloc((ft_printf_get_len(pflist) + 1)
- * sizeof(char))))
+ * sizeof(char))))
return ;
str = ft_memset(str, ' ', ft_printf_get_len(pflist));
*(str + ft_printf_get_len(pflist)) = '\0';
@@ -94,7 +91,7 @@ void
&& pflist->isreverse)
{
if (!(str = (char*)malloc((ft_printf_get_len(pflist) + 1)
- * sizeof(char))))
+ * sizeof(char))))
return ;
str = ft_memset(str, ' ', ft_printf_get_len(pflist));
*(str + ft_printf_get_len(pflist)) = '\0';