This commit is contained in:
Matej Hajduk 2025-10-15 17:21:02 +02:00
parent a8d5d8f6b3
commit 5e7e41928a

View File

@ -40,7 +40,7 @@ int main(){
char *endptr;
float num = strtof(x, &endptr);
if (*endptr == "\0") { // je cislo
if (*endptr == '\0') { // je cislo
if(mystack.size >= SIZE) {
fprintf(stderr," plne \n");
return 1;
@ -61,7 +61,7 @@ int main(){
case '*': result = a * b;break;
case '/':
if(b == 0){
fprintf(strderr, "nule pr ideleni \n");
fprintf(stderr, "nule pr ideleni \n");
return 1;
}
result = a / b;