[docs] [issue14519] In re's examples the example with scanf() contains wrong analog for %x, %X specifiers
py.user
report at bugs.python.org
Sat Apr 7 05:19:41 CEST 2012
py.user <bugzilla-mail-box at yandex.ru> added the comment:
#include <stdio.h>
int main(void)
{
unsigned n;
scanf("%x", &n);
printf("%u\n", n);
return 0;
}
[guest at localhost c]$ .ansi t.c -o t
[guest at localhost c]$ ./t
0xa
10
[guest at localhost c]$ ./t
a
10
[guest at localhost c]$
[guest at localhost c]$ alias .ansi
alias .ansi='gcc -ansi -pedantic -Wall'
[guest at localhost c]$
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue14519>
_______________________________________
More information about the docs
mailing list