[PATCH] scanf.3: Do not mention the ERANGE error
Ian Abbott
abbotti@mev.co.uk
Wed Dec 14 10:52:27 GMT 2022
On 2022-12-14 10:39, Alejandro Colomar wrote:
> Hi Ian & Zack,
>
> On 12/14/22 11:22, Ian Abbott wrote:
>> On 14/12/2022 02:18, Zack Weinberg wrote:
>>> Ian Abbott <abbotti@mev.co.uk> 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?
The source character set may contain locale-specific characters outside
the basic source character set.
Actually, there are two basic character sets - the basic source
character set and the basic execution character set (which includes the
basic source character set plus a few control characters). The source
character set and/or execution character set may contain
locale-specific, extended characters outside the basic character set.
https://port70.net/~nsz/c/c11/n1570.html#5.2.1
--
-=( Ian Abbott <abbotti@mev.co.uk> || MEV Ltd. is a company )=-
-=( registered in England & Wales. Regd. number: 02862268. )=-
-=( Regd. addr.: S11 & 12 Building 67, Europa Business Park, )=-
-=( Bird Hall Lane, STOCKPORT, SK3 0XA, UK. || www.mev.co.uk )=-
More information about the Libc-alpha
mailing list