fix s nespravnymi operatormi

This commit is contained in:
Aleš Novysedlák 2025-03-10 14:34:43 +01:00
parent 4611c10605
commit 19a34f35ba

View File

@ -28,7 +28,7 @@ int main() {
index++;
continue;
}
if (isalpha(buffer[index]) && !error) {
if ((isalpha(buffer[index]) || strchr("+-*/=123456789\n", buffer[index]) == NULL) && !error) {
error = 1;
strcpy(output[output_length], "CHYBA");
output_length++;