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. Best regards, Stéphane -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]