Libft
Custom implementation of core libc functions with additional utility helpers.
Loading...
Searching...
No Matches
append_1.c File Reference
#include "buff_format.h"
Include dependency graph for append_1.c:

Functions

static bool append_str (t_buff *buff, const t_rules *rules, const char *str)
 Appends a string to the buffer with null handling.
 
bool append (t_buff *buff, t_rules *rules, va_list *args)
 Appends formatted argument to buffer based on rules.
 

Function Documentation

◆ append()

bool append ( t_buff buff,
t_rules rules,
va_list *  args 
)

Appends formatted argument to buffer based on rules.

Parameters
buffPointer to the buffer.
rulesPointer to the formatting rules.
argsPointer to the variable argument list.
Returns
true on success, false on failure.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ append_str()

static bool append_str ( t_buff buff,
const t_rules rules,
const char *  str 
)
inlinestatic

Appends a string to the buffer with null handling.

Parameters
buffPointer to the buffer.
rulesPointer to the formatting rules.
strString to append (can be NULL).
Returns
true on success, false on failure.
Here is the call graph for this function:
Here is the caller graph for this function: