libft
Loading...
Searching...
No Matches
Functions
write_safely.c File Reference

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.
 

Detailed Description

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:

These utilities are essential for robust and portable output handling when implementing a printf-like function.

Author
Toonsa
Date
2024/11/30