mirror of
https://github.com/Kitware/CMake.git
synced 2026-01-03 04:10:05 -06:00
TestDriver: use for loop
This commit is contained in:
@@ -47,10 +47,8 @@ static char* lowercase(const char* string)
|
||||
return 0;
|
||||
}
|
||||
strncpy(new_string, string, stringSize);
|
||||
p = new_string;
|
||||
while (*p != 0) {
|
||||
for (p = new_string; *p != 0; ++p) {
|
||||
*p = CM_CAST(char, tolower(*p));
|
||||
++p;
|
||||
}
|
||||
return new_string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user