refactoring: tolower

This commit is contained in:
rusEfi 2017-04-04 23:00:21 -04:00
parent 9cdb2a7830
commit ce232a2708
2 changed files with 7 additions and 11 deletions

View File

@ -207,17 +207,6 @@ static void removeFile(const char *pathx) {
unlockSpi();
}
/*
** return lower-case of c if upper-case, else c
*/
int mytolower(const char c) {
if(c<='Z' && c>='A') return (c+32);
return (c);
}
int
mystrncasecmp(const char *s1, const char *s2, size_t n)
{

View File

@ -250,6 +250,13 @@ bool strEqualCaseInsensitive(const char *str1, const char *str2) {
return true;
}
/*
** return lower-case of c if upper-case, else c
*/
int mytolower(const char c) {
return TO_LOWER(c);
}
bool strEqual(const char *str1, const char *str2) {
// todo: there must be a standard function?!
int len1 = strlen(str1);