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

Functions

bool string_prepend_n (t_string *s, const char *str, long n)
 Prepends n first bytes of a string to the beginning of a string.
 
bool string_insert_n (t_string *s, size_t index, const char *str, long n)
 Inserts n first bytes of a string at the specified index.
 
bool string_append_n (t_string *s, const char *str, long n)
 Appends n first bytes of a string to the end of a dynamic string.
 
bool string_dup_n (t_string *dst, const t_string *src, size_t n)
 Copies up to n bytes from a source string into an existing string.
 
void string_trim_leading (t_string *string, char c)
 Removes leading copies of a character from a string.