Print functions. More...
Functions | |
ssize_t | ft_putchar_fd (const char c, int fd) |
Print the character 'c' on the file descriptor. | |
ssize_t | ft_putstr_fd (const char *s, int fd) |
Print the string 's' on the file descriptor. | |
ssize_t | ft_putnstr_fd (const char *s, size_t len, int fd) |
Print the string 's' on the file descriptor until a given size or the length of s if len is greater. | |
ssize_t | ft_putendl_fd (const char *s, int fd) |
Print the string 's' on the file descriptor, followed by a newline. | |
ssize_t | ft_putnendl_fd (const char *s, size_t len, int fd) |
Print the string 's' on the file descriptor, followed by a newline until a given size or the length of s if len is greater. | |
ssize_t | ft_putnbr_fd (long long n, int fd) |
Write the int 'n' on the given file descriptor. | |
ssize_t | ft_putnbr_bin (int nbr) |
Putnbr for binary. | |
ssize_t | ft_putnbr_oct (int nbr) |
Putnbr for octal. | |
ssize_t | ft_putnbr_hex (int nbr, char height) |
Putnbr for hex or HEX. | |
ssize_t | ft_putnbr_hex_fd (unsigned int nbr, char height, int fd) |
Putnbr for hex or HEX. | |
ssize_t | ft_putptr_fd (unsigned long nbr, int fd) |
Print pointer adress. | |
ssize_t | ft_putnbr_base (int nbr, const char *base) |
Putnbr with a particular base. | |
size_t | ft_check_base_atoi (const char *base) |
Check if base is valid for atoi_base. | |
size_t | ft_check_base_putnbr (const char *base) |
Check if base is valid for putnbr_base. | |
ssize_t | ft_putpointer_fd (const void *ptr) |
Print pointer adress. | |
Print functions.
size_t ft_check_base_atoi | ( | const char * | base | ) |
Check if base is valid for atoi_base.
base | base to check |
size_t ft_check_base_putnbr | ( | const char * | base | ) |
Check if base is valid for putnbr_base.
base | base to check |
ssize_t ft_putchar_fd | ( | const char | c, |
int | fd ) |
Print the character 'c' on the file descriptor.
c | character to print |
fd | file descriptor |
ssize_t ft_putendl_fd | ( | const char * | s, |
int | fd ) |
Print the string 's' on the file descriptor, followed by a newline.
s | string to print |
fd | file descriptor |
ssize_t ft_putnbr_base | ( | int | nbr, |
const char * | base ) |
Putnbr with a particular base.
nbr | number to print |
base | base to use |
ssize_t ft_putnbr_bin | ( | int | nbr | ) |
Putnbr for binary.
nbr | number to print |
ssize_t ft_putnbr_fd | ( | long long | n, |
int | fd ) |
Write the int 'n' on the given file descriptor.
n | number to print |
fd | file descriptor |
ssize_t ft_putnbr_hex | ( | int | nbr, |
char | height ) |
Putnbr for hex or HEX.
nbr | number to print |
height | 1 for hex, 0 for HEX |
ssize_t ft_putnbr_hex_fd | ( | unsigned int | nbr, |
char | height, | ||
int | fd ) |
Putnbr for hex or HEX.
nbr | number to print |
height | 1 for hex, 0 for HEX |
fd | file descriptor |
ssize_t ft_putnbr_oct | ( | int | nbr | ) |
Putnbr for octal.
nbr | number to print |
ssize_t ft_putnendl_fd | ( | const char * | s, |
size_t | len, | ||
int | fd ) |
Print the string 's' on the file descriptor, followed by a newline until a given size or the length of s if len is greater.
s | string to print |
len | maximum char to be printed |
fd | file descriptor |
ssize_t ft_putnstr_fd | ( | const char * | s, |
size_t | len, | ||
int | fd ) |
Print the string 's' on the file descriptor until a given size or the length of s if len is greater.
s | string to print |
len | maximum char to be printed |
fd | nombre de caractere qui ont été écrits |
ssize_t ft_putpointer_fd | ( | const void * | ptr | ) |
Print pointer adress.
ptr | pointer to print |
ssize_t ft_putptr_fd | ( | unsigned long | nbr, |
int | fd ) |
Print pointer adress.
nbr | Number to be printed |
fd | File descriptor |
ssize_t ft_putstr_fd | ( | const char * | s, |
int | fd ) |
Print the string 's' on the file descriptor.
s | string to print |
fd | file descriptor |