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

Functions

bool buff_prepend (t_buff *dst, const t_buff *src)
 Prepends a source buffer to the beginning of a buffer.
 
bool buff_insert (t_buff *dst, size_t index, const t_buff *src)
 Inserts a source buffer in a buffer at the specified index.
 
bool buff_append (t_buff *dst, const t_buff *src)
 Appends the content of a source buffer to the end of a buffer.
 
bool buff_dup (t_buff *dst, const t_buff *src)
 Copies the content of a source buffer into an existing buffer.
 
void buff_rm_part (t_buff *buff, size_t i_start, ssize_t len)
 Removes a portion of the buffer starting at i_start.