Libft
42 Libft library documentation
Loading...
Searching...
No Matches
ft_putchar_fd.c File Reference
#include <unistd.h>
+ Include dependency graph for ft_putchar_fd.c:

Go to the source code of this file.

Functions

void ft_putchar_fd (char c, int fd)
 Writes one character to a file descriptor.
 

Function Documentation

◆ ft_putchar_fd()

void ft_putchar_fd ( char  c,
int  fd 
)

Writes one character to a file descriptor.

Parameters
cCharacter to write.
fdDestination file descriptor.

Definition at line 21 of file ft_putchar_fd.c.

22{
23 write(fd, &c, 1);
24}

Referenced by ft_putnbr_fd().

+ Here is the caller graph for this function: