summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_printf_put_width.c
diff options
context:
space:
mode:
Diffstat (limited to 'libft/src/ft_printf_put_width.c')
-rw-r--r--libft/src/ft_printf_put_width.c13
1 files changed, 5 insertions, 8 deletions
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';