diff options
Diffstat (limited to 'src/io/ft_sprintf.c')
| -rw-r--r-- | src/io/ft_sprintf.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/src/io/ft_sprintf.c b/src/io/ft_sprintf.c new file mode 100644 index 0000000..31da75e --- /dev/null +++ b/src/io/ft_sprintf.c @@ -0,0 +1,24 @@ +/* ************************************************************************** */ +/* */ +/* ::: :::::::: */ +/* ft_sprintf.c :+: :+: :+: */ +/* +:+ +:+ +:+ */ +/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ +/* +#+#+#+#+#+ +#+ */ +/* Created: 2019/11/21 02:17:21 by cacharle #+# #+# */ +/* Updated: 2019/11/21 03:42:28 by cacharle ### ########.fr */ +/* */ +/* ************************************************************************** */ + +#include "libft.h" + +int ft_sprintf(char *str, const char *format, ...) +{ + int ret; + va_list ap; + + va_start(ap, format); + ret = ft_vsprintf(str, format, ap); + va_end(ap); + return (ret); +} |
