diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-10-30 23:35:40 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-10-30 23:35:40 +0100 |
| commit | d63d6916249f5b40b81097854d8ca2c9d4d7d071 (patch) | |
| tree | b98fe6a060fdb632d00ddf9385f6579a32619f38 /printer.c | |
| parent | 22f334a19cabebf10727d7894102946ba23d0e37 (diff) | |
| download | ft_printf-d63d6916249f5b40b81097854d8ca2c9d4d7d071.tar.gz ft_printf-d63d6916249f5b40b81097854d8ca2c9d4d7d071.tar.bz2 ft_printf-d63d6916249f5b40b81097854d8ca2c9d4d7d071.zip | |
Normed converters
Diffstat (limited to 'printer.c')
| -rw-r--r-- | printer.c | 23 |
1 files changed, 2 insertions, 21 deletions
@@ -6,16 +6,16 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2019/10/28 23:19:24 by cacharle #+# #+# */ -/* Updated: 2019/10/30 18:04:06 by cacharle ### ########.fr */ +/* Updated: 2019/10/30 23:30:58 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ #include <unistd.h> #include <stdlib.h> #include <stdarg.h> +#include "libft.h" #include "header.h" - char *convert(t_pformat *pformat, va_list ap) { char *str; @@ -89,25 +89,6 @@ char *handle_padding(t_pformat *pformat, char *str) return (tmp); } -/* char *handle_nbr_padding(t_pformat *pformat, char *str) */ -/* { */ -/* char *tmp; */ -/* int len = ft_strlen(str); */ -/* int i; */ -/* */ -/* if (!(IN_STR("+-", str[0]) && pformat->flags & FLAG_ZERO_PADDING)) */ -/* return (str); */ -/* tmp[0] = str[0]; */ -/* len--; */ -/* i = 1; */ -/* while (i < pformat->min_width - len) */ -/* tmp[i++] = '0'; */ -/* ft_strcpy(tmp + i , str + 1); */ -/* ft_strcpy(str, tmp); */ -/* free(tmp); */ -/* return (str); */ -/* } */ - char *handle_precision(t_pformat *pformat, char *str) { int len; |
