20 lines
1,022 B
C
20 lines
1,022 B
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* ft_putendl_fd.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: mcolonna <marvin@42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* Created: 2023/10/03 14:25:02 by mcolonna #+# #+# */
|
|
/* Updated: 2023/10/04 14:17:01 by mcolonna ### ########.fr */
|
|
/* */
|
|
/* ************************************************************************** */
|
|
|
|
#include <unistd.h>
|
|
#include "libft.h"
|
|
|
|
void ft_putendl_fd(char *s, int fd)
|
|
{
|
|
write(fd, s, ft_strlen(s));
|
|
write(fd, "\n", 1);
|
|
}
|