I was just reading the glibc sscanf
man page (from the Linux man-pages package) and I found the following:
The following conversion specifiers are available:
(...)
d
Deprecated. Matches an optionally signed decimal integer; thenext pointer must be a pointer toint
.
i
Deprecated. Matches an optionally signed integer; the nextpointer must be a pointer toint
. The integer is read in base16 if it begins with0x
or0X
, in base 8 if it begins with0
,and in base 10 otherwise. Only characters that correspond tothe base are used.
o
Deprecated. Matches an unsigned octal integer; the next pointermust be a pointer tounsigned int
.(...)
- How come
%d
is deprecated? It seem that allint
specifiers are deprecated. - What does it mean and what is there to replace them?