1
1
mirror of https://github.com/theoludwig/libcproject.git synced 2025-05-21 23:21:15 +02:00

feat: add string_remove_character

This commit is contained in:
2023-08-09 20:21:33 +02:00
parent f0716c2e12
commit 6505e3ba49
4 changed files with 35 additions and 0 deletions

View File

@ -51,6 +51,17 @@ void string_to_lowercase(string_t string);
*/
void string_replace(string_t string, char search, char replace);
/**
* @brief Removes all the occurrences of a character in a string.
*
* NOTE: Mutates the string.
*
* @param string
* @param search A character search value.
* @since v4.1.0
*/
void string_remove_character(char* string, char search);
/**
* @brief Removes all `character` from the start of a string.
*