Update du3/program.c
This commit is contained in:
parent
f8efe6e386
commit
e59e598316
@ -70,7 +70,7 @@ int main() {
|
|||||||
char *endptr;
|
char *endptr;
|
||||||
float val = strtof(input, &endptr);
|
float val = strtof(input, &endptr);
|
||||||
if (*endptr != '\0') {
|
if (*endptr != '\0') {
|
||||||
printf("no input\n");
|
printf("bad input\n");
|
||||||
exit(0);
|
exit(0);
|
||||||
}
|
}
|
||||||
push_stack(&s, val);
|
push_stack(&s, val);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user