diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-29 19:18:30 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-09-29 19:18:30 +0200 |
commit | 4ede84d4ab98c75ed8655607fe64c205b79ed986 (patch) | |
tree | 6f9d5113400faf13a778de0f09c0203c7939b93f /libft/src/ft_printf_get_width_nstr.c | |
parent | Norm update (diff) | |
download | 42-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 '')
-rw-r--r-- | libft/src/ft_printf_get_width_nstr.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/libft/src/ft_printf_get_width_nstr.c b/libft/src/ft_printf_get_width_nstr.c index 2aec3b8..22a942e 100644 --- a/libft/src/ft_printf_get_width_nstr.c +++ b/libft/src/ft_printf_get_width_nstr.c @@ -14,8 +14,7 @@ #include <stdlib.h> #include <stdarg.h> -int - ft_printf_fetch_width(va_list arg, char *nstr, t_printflist *pflist) +int ft_printf_fetch_width(va_list arg, char *nstr, t_printflist *pflist) { int ret; char *str; @@ -44,8 +43,7 @@ int return (ret); } -char - *ft_printf_get_width_nstr(char *str, t_printflist *pflist) +char *ft_printf_get_width_nstr(char *str, t_printflist *pflist) { (ft_strlchr(pflist->fullflag, '+') >= 0) ? (pflist->isaplus = 1) : 0; (*(pflist->fullflag) == '+' && *(pflist->fullflag + 1)) ? (str += 1) : 0; |