diff options
Diffstat (limited to 'convert_char.c')
| -rw-r--r-- | convert_char.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/convert_char.c b/convert_char.c new file mode 100644 index 0000000..ee30a2c --- /dev/null +++ b/convert_char.c @@ -0,0 +1,13 @@ +#include <stdarg.h> +#include "header.h" + +char *convert_char(va_list ap, t_pformat *pformat) +{ + char *str = ft_strnew(2); + if (str == NULL) + return (NULL); + str[0] = va_arg(ap, int); + str[1] = '\0'; + str = handle_padding(pformat, str); + return (str); +} |
