Re: [PATCH] scanf.3: Do not mention the ERANGE error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Ian & Zack,

On 12/14/22 11:22, Ian Abbott wrote:
On 14/12/2022 02:18, Zack Weinberg wrote:
Ian Abbott <abbotti@xxxxxxxxx> writes:

On 12/12/2022 02:11, Zack Weinberg wrote:
Field widths are awkward to use because you have to write them as
decimal constants _inside the format string_…

It's a shame that scanf's maximum field width couldn't be specified
using an integer parameter in the same was as printf's minimum field
width, but the '*' flag was already taken!

Yup.  I suppose we could make up another flag … ‘@’ isn’t used for
anything …

'@' isn't included in C's basic character set though.  '&' is available.

Just a curious question from an ignorant: what's the difference between the basic character set and the source character set?

Thanks,

Alex



--
<http://www.alejandro-colomar.es/>

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux