-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_sprintf.c
25 lines (21 loc) · 1.09 KB
/
ft_sprintf.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_sprintf.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: akharrou <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/25 21:43:09 by akharrou #+# #+# */
/* Updated: 2019/05/08 08:44:49 by akharrou ### ########.fr */
/* */
/* ************************************************************************** */
#include "ft_printf.h"
/*
** Reproduction of the libc 'sprintf()' function.
*/
int ft_sprintf(char *str, const char *format, ...)
{
va_list args;
va_start(args, format);
return (ft_vsprintf(str, format, &args));
}