maxishell
Implementation of a shell for Linux-like systems
Loading...
Searching...
No Matches
ft_putchar_fd.c
Go to the documentation of this file.
1/* ************************************************************************** */
2/* */
3/* ::: :::::::: */
4/* ft_putchar_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_putchar_fd ******************************** */
16/* Writes the character 'c' to the specified file descriptor 'fd'. */
17/* A file descriptor is a numeric identifier for an I/O resource. */
18/* ************************************************************************** */
19
20void ft_putchar_fd(char c, int fd)
21{
22 write(fd, &c, 1);
23}
void ft_putchar_fd(char c, int fd)