Quantcast
Channel: man sscanf: %d is deprecated in C or glibc? - Stack Overflow
Viewing all articles
Browse latest Browse all 7

man sscanf: %d is deprecated in C or glibc?

$
0
0

I was just reading the glibc sscanfman 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 to int.

i  Deprecated. Matches an optionally signed integer; the nextpointer must be a pointer to int. The integer is read in base16 if it begins with 0x or 0X, in base 8 if it begins with 0,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 to unsigned int.

(...)

  • How come %d is deprecated? It seem that all int specifiers are deprecated.
  • What does it mean and what is there to replace them?

Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images