On Fri, Jun 20, 2008 at 5:58 PM, Stephane Chazelas
<[EMAIL PROTECTED]> wrote:
> On Fri, Jun 20, 2008 at 04:35:27PM +0100, Stephane Chazelas wrote:
> [...]
>> In the GNU and UC versions of the libc (at least), the
>> scanf/fscanf/sscanf... functions seem to be calling strtoxxx
>> internally for number conversions.
>>
>> In doing so, errno may be set to ERANGE when the input doesn't
>> fit in the number size requested and possibly to EINVAL for a
>> figures not in the requested base.
> [...]
>
> For information, dietlibc's scanf doesn't exhibit that behavior.
> On other Unices, it seems to vary, and it doesn't seem to be
> often clearly documented.

Hi Stephane,

Thanks for the note.  I will look at this a bit more.  I see you sent
a note into the Austin list about this.  Two things: it's alway worth
CCing me on such notes, since I do follow Austin.  second: you may
make more headway by raising a proper bugreport against the standard
-- these bug reports are called Aardvarks.  Look on the Austin site
for info.

Cheers,

Michael


-- 
Michael Kerrisk
Linux man-pages maintainer; http://www.kernel.org/doc/man-pages/
man-pages online: http://www.kernel.org/doc/man-pages/online_pages.html
Found a bug? http://www.kernel.org/doc/man-pages/reporting_bugs.html



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to