nicolas-arnaud
2 years ago
3 changed files with 24 additions and 1 deletions
@ -0,0 +1,21 @@ |
|||||
|
/* ************************************************************************** */ |
||||
|
/* */ |
||||
|
/* ::: :::::::: */ |
||||
|
/* ft_putstr_fd.c :+: :+: :+: */ |
||||
|
/* +:+ +:+ +:+ */ |
||||
|
/* By: narnaud <narnaud@student.42.fr> +#+ +:+ +#+ */ |
||||
|
/* +#+#+#+#+#+ +#+ */ |
||||
|
/* Created: 2021/10/22 15:10:39 by narnaud #+# #+# */ |
||||
|
/* Updated: 2022/03/24 09:22:49 by narnaud ### ########.fr */ |
||||
|
/* */ |
||||
|
/* ************************************************************************** */ |
||||
|
|
||||
|
#include "../libft.h" |
||||
|
|
||||
|
void ft_putnstr_fd(size_t n, char *s, int fd) |
||||
|
{ |
||||
|
if (!s) |
||||
|
return ; |
||||
|
while (n--) |
||||
|
ft_putchar_fd(*(s++), fd); |
||||
|
} |
Loading…
Reference in new issue