Commit fcdf7f55 authored by Uwe Schulzweida's avatar Uwe Schulzweida
Browse files

strToLower: return pointer to string.

parent 3ba10bb0
......@@ -6,11 +6,13 @@
#include "error.h"
void strToLower(char *str)
char *strToLower(char *str)
{
if ( str )
for ( size_t i = 0; str[i]; ++i )
if (str)
for (size_t i = 0; str[i]; ++i)
str[i] = (char)tolower((int)str[i]);
return str;
}
......
......@@ -38,7 +38,7 @@ char *strdup(const char *s);
*/
#endif
void strToLower(char *str);
char *strToLower(char *str);
bool str_is_equal(const char *vstr, const char *cstr);
#ifndef M_PI
......
Markdown is supported
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