This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: printf enhancement


Alfred M. Szmidt wrote:
>    Since it is possible to use the 0b prefix to specify a binary
>    number in GCC/C++, will there be any resistance to add %b format
>    specifier to the printf family format strings?
>
> You can do that yourself by using the hook facility for printf, see
> (libc) Customizing Printf in the GNU C library manual; this is a GNU
> extention and not supported by ISO C.
>   
If you add support for it, you may break code that already registers %b
using this functionality, no?

Cheers,
    Nils


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]