finally \o/
added ft_printf to libft finalised ans tested ft_getline
This commit is contained in:
@@ -6,11 +6,11 @@
|
||||
/* By: klebon <klebon@student.42.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2018/05/23 19:48:06 by klebon #+# #+# */
|
||||
/* Updated: 2018/10/01 15:41:10 by klebon ### ########.fr */
|
||||
/* Updated: 2019/03/07 22:25:19 by tmaze ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libftprintf.h"
|
||||
#include "libft.h"
|
||||
|
||||
void handler_2oct_wstr(wint_t c, char *output, int *i)
|
||||
{
|
||||
@@ -81,7 +81,7 @@ char *handle_output_wstr(t_conv *field, va_list ap)
|
||||
field->fl_prec = field->str_size;
|
||||
if (field->fl_witdth > field->str_size)
|
||||
field->str_size += (field->fl_witdth - field->str_size);
|
||||
if (!(output = ft_strnewb(field->str_size)))
|
||||
if (!(output = ft_strnew(field->str_size)))
|
||||
return (NULL);
|
||||
convert_wstr_to_str(str, output, field);
|
||||
ft_align_wstr(output, field);
|
||||
|
Reference in New Issue
Block a user