Libft
42 Libft library documentation
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: raphalme <raphalme@student.42.fr> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2025/12/29 19:10:00 by raphalme #+# #+# */
9/* Updated: 2026/04/14 10:45:22 by raphalme ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "../includes/libft.h"
14
23void ft_putstr_fd(char *s, int fd)
24{
25 if (!s)
26 return ;
27 write(fd, s, ft_strlen(s));
28}
void ft_putstr_fd(char *s, int fd)
Writes a string to a file descriptor.
size_t ft_strlen(const char *str)
Returns the length of a null-terminated string.
Definition ft_strlen.c:21