maxishell
Implementation of a shell for Linux-like systems
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: rmikhayl <rmikhayl@student.42london.c +#+ +:+ +#+ */
7/* +#+#+#+#+#+ +#+ */
8/* Created: 2023/12/17 17:25:28 by rmikhayl #+# #+# */
9/* Updated: 2023/12/17 17:25:28 by rmikhayl ### ########.fr */
10/* */
11/* ************************************************************************** */
12
13#include "libft.h"
14
15/* *************************** ft_putendl_fd ******************************** */
16/* Writes the string 's' followed by a newline to the specified */
17/* file descriptor 'fd'. A file descriptor is a numeric identifier for */
18/* an I/O resource. The original string 's' remains unchanged. */
19/* ************************************************************************** */
20
21void ft_putendl_fd(char *s, int fd)
22{
23 if (s)
24 {
25 ft_putstr_fd(s, fd);
26 ft_putchar_fd('\n', fd);
27 }
28}
void ft_putendl_fd(char *s, int fd)
void ft_putchar_fd(char c, int fd)
void ft_putstr_fd(char *s, int fd)