aboutsummaryrefslogtreecommitdiff
path: root/src/io/ft_printf/internals/convert_str.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/io/ft_printf/internals/convert_str.c')
-rw-r--r--src/io/ft_printf/internals/convert_str.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/io/ft_printf/internals/convert_str.c b/src/io/ft_printf/internals/convert_str.c
deleted file mode 100644
index 7d51a5e..0000000
--- a/src/io/ft_printf/internals/convert_str.c
+++ /dev/null
@@ -1,25 +0,0 @@
-/* ************************************************************************** */
-/* */
-/* ::: :::::::: */
-/* convert_str.c :+: :+: :+: */
-/* +:+ +:+ +:+ */
-/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
-/* +#+#+#+#+#+ +#+ */
-/* Created: 2019/10/30 23:22:25 by cacharle #+# #+# */
-/* Updated: 2019/11/09 01:07:24 by cacharle ### ########.fr */
-/* */
-/* ************************************************************************** */
-
-#include "ft_vasprintf.h"
-
-char *convert_str(va_list ap, t_pformat *pformat)
-{
- char *str;
-
- str = va_arg(ap, char*);
- str = str == NULL ? ft_strdup("(null)") : ft_strdup(str);
- if (pformat->precision >= 0 && pformat->precision < (int)ft_strlen(str))
- str[pformat->precision] = '\0';
- str = handle_width(pformat, str);
- return (str);
-}