|
Message-ID: <87bkt12tmn.fsf@keithp.com>
Date: Wed, 03 Aug 2022 09:12:48 -0700
From: Keith Packard <keithp@...thp.com>
To: Joseph Myers <joseph@...esourcery.com>, libc-coord@...ts.openwall.com
Cc: enh <enh@...gle.com>
Subject: Re: anyone else working on %b?
Joseph Myers <joseph@...esourcery.com> writes:
> Yes. (There's no scanf %B defined or mentioned in recommended practice in
> C23 since it wouldn't be any different from %b.) scanf %b is defined in
> terms of strtol base 2 and the same changes that added %b support to C23
> also added a specification that strtol base 2 accepts those prefixes.
Interesting compromise, given that %X is valid. Thanks for your answers;
I'll go remove %B support in fscanf. With that, I think picolibc is all
set, although more tests would (always?) be good.
--
-keith
Download attachment "signature.asc" of type "application/pgp-signature" (833 bytes)
Powered by blists - more mailing lists
Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.