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

Functions

bool buff_prepend_n (t_buff *b, const char *str, long n)
 Prepends n first bytes of a string to the beginning of the buffer.
 
bool buff_insert_n (t_buff *b, size_t index, const char *str, long n)
 Inserts n first bytes of a string in the buffer at specified index.
 
bool buff_append_n (t_buff *b, const char *str, long n)
 Appends n first bytes of a string to the end of the buffer.
 
bool buff_dup_n (t_buff *dst, const t_buff *src, size_t n)
 Copies up to n bytes from a source buffer into an existing buffer.