mirror of
https://github.com/thunderbrewhq/squall.git
synced 2025-12-12 02:22:30 +00:00
chore(string): clean up SStrLower
This commit is contained in:
parent
6f1ae486e3
commit
3b8fe9bdf6
1 changed files with 3 additions and 4 deletions
|
|
@ -222,10 +222,9 @@ size_t SStrLen(const char* string) {
|
|||
}
|
||||
|
||||
void SStrLower(char* string) {
|
||||
char* tmp = string;
|
||||
|
||||
for (; *tmp; tmp++) {
|
||||
*tmp = static_cast<char>(tolower(*tmp));
|
||||
while (*string) {
|
||||
*string = static_cast<char>(tolower(*string));
|
||||
string++;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue