libft
Loading...
Searching...
No Matches
ft_putendl_fd.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ft_putendl_fd.c :+: :+: :+: */
5/* +:+ +:+ +:+ */
6/* By: tspoof <tspoof@student.hive.fi> +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2022/11/06 14:27:54 by tspoof #+# #+# */
9/* Updated: 2022/11/06 14:34:00 by tspoof ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "libft.h"
14
15void ft_putendl_fd(char *s, int fd)
16{
17 if (!s)
18 return ;
19 ft_putstr_fd(s, fd);
20 ft_putchar_fd('\n', fd);
21}
void ft_putendl_fd(char *s, int fd)
Writes new line to file.
void ft_putchar_fd(char c, int fd)
Writes char to file.
void ft_putstr_fd(char *s, int fd)
Writes string to file.