Commit d8c1e37a authored by Gabriel Genois's avatar Gabriel Genois

..

parent 9b54ad29
Pipeline #94 failed with stages
in 14 seconds
......@@ -6,7 +6,7 @@
/* By: ggenois <ggenois@student.le-101.fr> +:+ +: +: +:+ */
/* #+# #+ #+ #+# */
/* Created: 2018/05/19 16:07:38 by ggenois #+# ## ## #+# */
/* Updated: 2018/11/04 14:50:17 by ggenois ### #+. /#+ ###.fr */
/* Updated: 2018/11/04 14:56:01 by ggenois ### #+. /#+ ###.fr */
/* / */
/* / */
/* ************************************************************************** */
......@@ -89,6 +89,7 @@ char *ftpf_get_n(t_pfdata **dt, va_list *data)
int base;
char *out;
src = NULL;
base = 10;
l = ftpf_getlength(dt);
......@@ -106,8 +107,10 @@ char *ftpf_get_n(t_pfdata **dt, va_list *data)
src = ftpf_get_numuwf(data, l, base, dt);
}
if ((*dt)->t == 'X')
src = ft_strupper(src);
out = ft_strdup(src);
free(src);
out = ft_strupper(src);
else
out = ft_strdup(src);
if (src)
free(src);
return (out);
}
No preview for this file type
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment