From fc29371a10bf6cfd93c4e9ccfe9193c1311efc98 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 27 Dec 2019 17:24:35 +0100 Subject: updated libft, better Makefile and .gitignore --- libft/src/ft_putnchar.c | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 libft/src/ft_putnchar.c (limited to 'libft/src/ft_putnchar.c') diff --git a/libft/src/ft_putnchar.c b/libft/src/ft_putnchar.c new file mode 100644 index 0000000..5d20f4c --- /dev/null +++ b/libft/src/ft_putnchar.c @@ -0,0 +1,29 @@ +/* ************************************************************************** */ +/* LE - / */ +/* / */ +/* ft_putnchar.c .:: .:/ . .:: */ +/* +:+:+ +: +: +:+:+ */ +/* By: rbousset +:+ +: +: +:+ */ +/* #+# #+ #+ #+# */ +/* Created: 2019/12/22 16:49:05 by rbousset #+# ## ## #+# */ +/* Updated: 2019/12/22 16:49:07 by rbousset ### #+. /#+ ###.fr */ +/* / */ +/* / */ +/* ************************************************************************** */ + +#include +#include + +int + ft_putnchar(int c, const size_t n) +{ + size_t i; + + i = 0; + while (i < n) + { + ft_putchar(c); + i++; + } + return (i); +} -- cgit v1.2.3