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

Functions

bool append_char (t_buff *buff, char c)
 Appends a character to the buffer.
 
bool append_int (t_buff *buff, int nb)
 Appends an integer to the buffer as a string.
 
bool append_uint (t_buff *buff, unsigned int nb)
 Appends an unsigned integer to the buffer as a string.
 
bool append_hex (t_buff *buff, unsigned long nb, bool uppercase)
 Appends a number in hexadecimal format to the buffer.
 
bool append_ptr (t_buff *buff, unsigned long nb)
 Appends a pointer address to the buffer.
 

Function Documentation

◆ append_char()

bool append_char ( t_buff buff,
char  c 
)

Appends a character to the buffer.

Parameters
buffPointer to the buffer.
cCharacter to append.
Returns
true on success, false on failure.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ append_hex()

bool append_hex ( t_buff buff,
unsigned long  nb,
bool  uppercase 
)

Appends a number in hexadecimal format to the buffer.

Parameters
buffPointer to the buffer.
nbNumber to convert.
uppercaseUse uppercase letters if true.
Returns
true on success, false on failure.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ append_int()

bool append_int ( t_buff buff,
int  nb 
)

Appends an integer to the buffer as a string.

Parameters
buffPointer to the buffer.
nbInteger to append.
Returns
true on success, false on failure.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ append_ptr()

bool append_ptr ( t_buff buff,
unsigned long  nb 
)

Appends a pointer address to the buffer.

Parameters
buffPointer to the buffer.
nbPointer value as unsigned long.
Returns
true on success, false on failure.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ append_uint()

bool append_uint ( t_buff buff,
unsigned int  nb 
)

Appends an unsigned integer to the buffer as a string.

Parameters
buffPointer to the buffer.
nbUnsigned integer to append.
Returns
true on success, false on failure.
Here is the call graph for this function:
Here is the caller graph for this function: