diff --git a/calculator.c b/calculator.c index a401123..0486550 100644 --- a/calculator.c +++ b/calculator.c @@ -1,6 +1,7 @@ #include #include #include +#include #include // Temporary #include #include "stack.h" @@ -713,10 +714,10 @@ int tokenize(char *str, char *(**tokensRef)) // Assemble an n-character (plus null-terminator) text token { int len = 1; - tmpToken[0] = ch; + tmpToken[0] = tolower(ch); for(len = 1; *ptr && type(*ptr) == text && len <= prefs.maxtokenlength; ++len) { - tmpToken[len] = *ptr++; + tmpToken[len] = tolower(*ptr++); } tmpToken[len] = '\0'; }