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

Functions

bool string_adjust (t_string *string)
 Shrinks string capacity to match its current length plus NUL byte.
 
ssize_t string_get_index_c (const t_string *string, char c)
 Finds the index of the first occurrence of a character in the string.
 
ssize_t string_get_index_s (const t_string *string, const char *s, ssize_t slen)
 Finds the first occurrence of a substring in the string.