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

Functions

bool string_prepend (t_string *dst, const t_string *src)
 Prepends a source string to the beginning of a string.
 
bool string_insert (t_string *const dst, size_t index, const t_string *const src)
 Inserts a source string in a string at the specified index.
 
bool string_append (t_string *dst, const t_string *src)
 Appends the content of a source string to the end of a string.
 
bool string_dup (t_string *dst, const t_string *src)
 Copies the content of a source string into an existing string.
 
void string_rm_part (t_string *string, size_t i_start, ssize_t len)
 Removes a portion of the string starting at i_start.