summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_printf_put_precision.c
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 /libft/src/ft_printf_put_precision.c
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
Diffstat (limited to '')
-rw-r--r--libft/src/ft_printf_put_precision.c6
1 files changed, 2 insertions, 4 deletions
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;