added path_fix_separators

This commit is contained in:
2026-06-07 21:55:13 +05:00
parent 82a6293f21
commit efa4a24304
5 changed files with 19 additions and 1 deletions

View File

@@ -175,3 +175,10 @@ void str_trim(str* line, bool set_zero_at_end){
line->isZeroTerminated = true;
}
}
void str_replaceChar(str* s, char fragment, char replacement){
for(u32 i = 0; i < s->len; i++){
if(s->data[i] == fragment)
s->data[i] = replacement;
}
}