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

refactor: avoid usage of char*, instead use string_t

This commit is contained in:
2023-08-10 00:32:49 +02:00
parent 07e2f4db45
commit c6df05e634
6 changed files with 14 additions and 14 deletions

View File

@ -37,7 +37,7 @@ void string_replace(string_t string, char search, char replace) {
string[string_length] = '\0';
}
void string_remove_character(char* string, char search) {
void string_remove_character(string_t string, char search) {
size_t string_length = string_get_length(string);
for (size_t index = 0; index < string_length; index++) {
if (string[index] == search) {