-
Notifications
You must be signed in to change notification settings - Fork 0
/
ft_sprintf.c
executable file
·25 lines (21 loc) · 1.1 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 <akharrou@student.42.us.org> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/04/25 21:43:09 by akharrou #+# #+# */
/* Updated: 2019/05/08 08:49:55 by akharrou ### ########.fr */
/* */
/* ************************************************************************** */
#include "../Includes/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));
}