c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path