libft
ft_putnstr_fd.c
Go to the documentation of this file.
1 /* ************************************************************************** */
3 /* */
4 /* ::: :::::::: */
5 /* ft_putnstr_fd.c :+: :+: :+: */
6 /* +:+ +:+ +:+ */
7 /* By: unite <marvin@42.fr> +#+ +:+ +#+ */
8 /* +#+#+#+#+#+ +#+ */
9 /* Created: 2019/09/28 22:32:01 by unite #+# #+# */
10 /* Updated: 2020/07/16 02:53:55 by unite ### ########.fr */
11 /* */
12 /* ************************************************************************** */
13 
14 #include "libft.h"
15 #include <unistd.h>
16 
25 void ft_putnstr_fd(char *s, size_t n, int fd)
26 {
27  write(fd, s, n);
28 }
ft_putnstr_fd
void ft_putnstr_fd(char *s, size_t n, int fd)
Writes the first n characters of a string to a file descriptor.
Definition: ft_putnstr_fd.c:25
libft.h