Hi,
> Karthik Vishwanath [SMTP:[EMAIL PROTECTED]] asked:
> I am confused about the call and the return vals. The defn, says:
> double strtod(const char *nptr, char **endptr)
>
> So if nptr="1000 00 junk", then the return value must be 0 and the
> expression (*endptr == nptr) must be true, right? I am not able to emulate
> this. What am I missing?
>
The return value is (double) 1000, and if you pass a reference
to a char pointer as the second argument, it will point to the
blank between 1000 and 00 after the call.
HTH,
Thomas