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