Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
Put Functions

Basic output functions. More...

Functions

void ft_putendl_fd (char *s, int fd)
 Writes a string followed by newline to a file descriptor.
void ft_putnbr_fd (int n, int fd)
 Writes an integer to a file descriptor.
void ft_putstr_fd (char *s, int fd)
 Writes a string to a file descriptor.

Detailed Description

Basic output functions.

Functions to write characters, strings and numbers to file descriptors.

Function Documentation

◆ ft_putendl_fd()

void ft_putendl_fd ( char * s,
int fd )

Writes a string followed by newline to a file descriptor.

Parameters
sString to write (NULL prints "(null)").
fdFile descriptor to write to.
Here is the call graph for this function:

◆ ft_putnbr_fd()

void ft_putnbr_fd ( int n,
int fd )

Writes an integer to a file descriptor.

Parameters
nInteger to write.
fdFile descriptor to write to.
Here is the call graph for this function:

◆ ft_putstr_fd()

void ft_putstr_fd ( char * s,
int fd )

Writes a string to a file descriptor.

Parameters
sString to write (NULL prints "(null)").
fdFile descriptor to write to.
Here is the call graph for this function: