accept "nan(n-char-sequence)" in strtod/scanf functions