|
libft
|
Safe low-level write utilities for ft_printf. More...
#include "libft.h"
Include dependency graph for write_safely.c:Functions | |
| void | write_char_safely (int fd, char c, t_pf *pf) |
| Safely writes a single character to a file descriptor. | |
| void | write_safely (int fd, char *str, t_pf *pf) |
| Safely writes a null-terminated string to a file descriptor. | |
| void | write_safely_len (int fd, char *str, size_t len, t_pf *pf) |
Safely writes len bytes from a string to a file descriptor. | |
Safe low-level write utilities for ft_printf.
This file implements safe wrappers around the write system call used by ft_printf. It ensures that:
t_pf structuretotal) is updated reliablyThese utilities are essential for robust and portable output handling when implementing a printf-like function.