initial plugin config framework, can't save multiple entries

This commit is contained in:
Berke Viktor
2011-11-29 20:15:56 +01:00
parent 266a86d0b5
commit b16ca3fa64
8 changed files with 157 additions and 1 deletions

View File

@@ -1830,3 +1830,21 @@ safe_strcpy (char *dest, const char *src, int bytes_left)
}
}
}
void
canonalize_key (char *key)
{
char *pos, token;
for (pos = key; (token = *pos) != 0; pos++)
{
if (token != '_' && (token < '0' || token > '9') && (token < 'A' || token > 'Z') && (token < 'a' || token > 'z'))
{
*pos = '_';
}
else
{
*pos = tolower(token);
}
}
}