initial plugin config framework, can't save multiple entries

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

No files matched your search

+18
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);
}
}
}