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
20void ft_putstr_fd(char *s, int fd)
21{
22 if (s)
23 write(fd, s, ft_strlen(s));
24}
void ft_putstr_fd(char *s, int fd)
size_t ft_strlen(const char *s)
Definition ft_strlen.c:15