libft/print/ft_putstr_fd.c
Raphael 905ffd4b72
refactor: only the usefull header
- Removing all 'libft.h' mention
- Using the include only on the files needed by
2025-09-01 18:45:33 +02:00

25 lines
1.1 KiB
C

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* ft_putstr_fd.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: rparodi <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/11/09 13:58:46 by rparodi #+# #+# */
/* Updated: 2025/09/01 17:48:07 by rparodi ### ########.fr */
/* */
/* ************************************************************************** */
#include "str.h"
#include <unistd.h>
/**
* @brief print a string on a file descriptor
*
* @param s the string to print
* @param fd the file descriptor
*/
void ft_putstr_fd(char *s, int fd)
{
write(fd, s, ft_strlen(s));
}