-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_asprintf.c
executable file
·25 lines (21 loc) · 1.11 KB
/
ft_asprintf.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_asprintf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: akharrou <akharrou@student.42.us.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/25 21:43:29 by akharrou #+# #+# */
/* Updated: 2019/05/08 08:49:37 by akharrou ### ########.fr */
/* */
/* ************************************************************************** */
#include "../Includes/ft_printf.h"
/*
** Reproduction of the libc 'asprintf()' function.
*/
int ft_asprintf(char **ret, const char *format, ...)
{
va_list args;
va_start(args, format);
return (ft_vasprintf(ret, format, &args));
}