commit
This commit is contained in:
parent
37f855b52a
commit
5293f097f7
@ -22,9 +22,10 @@ int main() {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
assert(r != NULL);
|
assert(r != NULL);
|
||||||
x = strtod(line, &endptr);
|
char *px = line;
|
||||||
if (line == endptr) {
|
while (isspace((unsigned char)*px)) px++;
|
||||||
printf("Nepodarilo sa nacitat hodnotu x.\n");
|
x = strtod(px, &endptr);
|
||||||
|
if (px == endptr) {
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
while (fgets(line, LINE_SIZE, stdin) != NULL) {
|
while (fgets(line, LINE_SIZE, stdin) != NULL) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user