Re: scanf() and friends

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

 



Hi Jürgen!

* Jürgen Sauermann <mail@xxxxxxxxxxxxxxxxxxxx>, 2020-05-24, 16:11:
This lets me wonder if the fact that my glibc version accepts (and discards) a 0x prefix in a 'X' conversion is merely a convenience that may disappear at some later point in time, or an intended feature on which a programmer may rely on.

It's an intended feature. C99 (and POSIX) requires stripping "0x".

--
Jakub Wilk



[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