Add initial code
This commit is contained in:
25
libftprintf/ft_printf.c
Normal file
25
libftprintf/ft_printf.c
Normal file
@@ -0,0 +1,25 @@
|
||||
/* ************************************************************************** */
|
||||
/* */
|
||||
/* ::: :::::::: */
|
||||
/* ft_printf.c :+: :+: :+: */
|
||||
/* +:+ +:+ +:+ */
|
||||
/* By: gbaconni@student.42lausanne.ch +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2022/01/18 16:17:58 by gbaconni #+# #+# */
|
||||
/* Updated: 2022/04/13 00:21:03 by gbaconni ### lausanne.ch */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "libftprintf.h"
|
||||
|
||||
int ft_printf(const char *format, ...)
|
||||
{
|
||||
va_list ap;
|
||||
int ret;
|
||||
|
||||
ret = 0;
|
||||
va_start(ap, format);
|
||||
ret += ft_vprintf(format, ap);
|
||||
va_end(ap);
|
||||
return (ret);
|
||||
}
|
||||
Reference in New Issue
Block a user