Robert Haas <robertmh...@gmail.com> writes: > I think I'm guilty of verbal inexactitude here but not bad coding. > Checking for *endptr != '\0', as I did, is not sufficient to detect > "whether an error occurred," as I alleged. But, in the part of my > response you didn't quote, I believe I made it clear that I only need > to detect garbage, not out-of-range values. And I think *endptr != > '\0' will do that.
Hmm ... do you consider an empty string to be valid input? regards, tom lane