fix s nespravnymi operatormi
This commit is contained in:
parent
4611c10605
commit
19a34f35ba
@ -28,7 +28,7 @@ int main() {
|
|||||||
index++;
|
index++;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if (isalpha(buffer[index]) && !error) {
|
if ((isalpha(buffer[index]) || strchr("+-*/=123456789\n", buffer[index]) == NULL) && !error) {
|
||||||
error = 1;
|
error = 1;
|
||||||
strcpy(output[output_length], "CHYBA");
|
strcpy(output[output_length], "CHYBA");
|
||||||
output_length++;
|
output_length++;
|
||||||
|
Loading…
Reference in New Issue
Block a user