Commit dc3a8855 authored by Thomas Jahns's avatar Thomas Jahns 🤸
Browse files

Replace strtolower with single-pass version.

parent 22c49c96
......@@ -128,14 +128,9 @@ ncvar_t;
static
void strtolower(char *str)
{
int i, len;
if ( str )
{
len = (int) strlen(str);
for ( i = 0; i < len; i++ )
str[i] = tolower((int) str[i]);
}
for (size_t i = 0; str[i]; ++i)
str[i] = tolower((int)str[i]);
}
static
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment