commit
This commit is contained in:
parent
5293f097f7
commit
b8597efbea
@ -22,10 +22,10 @@ int main() {
|
||||
return 0;
|
||||
}
|
||||
assert(r != NULL);
|
||||
char *px = line;
|
||||
while (isspace((unsigned char)*px)) px++;
|
||||
x = strtod(px, &endptr);
|
||||
if (px == endptr) {
|
||||
x = strtod(line, &endptr);
|
||||
char *p_check = line;
|
||||
while (isspace((unsigned char)*p_check)) p_check++;
|
||||
if (p_check == endptr) {
|
||||
return 0;
|
||||
}
|
||||
while (fgets(line, LINE_SIZE, stdin) != NULL) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user