tgrekov-libft
HIVE libft Oct 2023
Loading...
Searching...
No Matches
ft_putstr_fd.c
Go to the documentation of this file.
1
/* ************************************************************************** */
2
/* */
3
/* ::: :::::::: */
4
/* ft_putstr_fd.c :+: :+: :+: */
5
/* +:+ +:+ +:+ */
6
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
7
/* +#+#+#+#+#+ +#+ */
8
/* Created: 2023/10/28 00:06:25 by tgrekov #+# #+# */
9
/* Updated: 2023/11/15 23:37:16 by tgrekov ### ########.fr */
10
/* */
11
/* ************************************************************************** */
12
20
#include "
libft.h
"
21
28
void
ft_putstr_fd
(
char
*s,
int
fd)
29
{
30
if
(!s)
31
return ;
32
write(fd, s,
ft_strlen
(s));
33
}
ft_putstr_fd
void ft_putstr_fd(char *s, int fd)
Write string at pointer s to file descriptor fd.
Definition
ft_putstr_fd.c:28
ft_strlen
size_t ft_strlen(const char *str)
Get length of str.
Definition
ft_strlen.c:28
libft.h
ft_putstr_fd.c