mailing list of musl libc
 help / color / mirror / code / Atom feed
* scanf %x bug
@ 2012-03-13 13:51 Szabolcs Nagy
  2012-03-13 15:05 ` Rich Felker
  2012-03-13 16:24 ` Rich Felker
  0 siblings, 2 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2012-03-13 13:51 UTC (permalink / raw)
  To: musl

i found a scanf bug:

#include <stdio.h>
int main(){
    int n, a=7;
    n = sscanf("0", "%x", &a);
    printf("%d %d\n", n, a);
    return 0;
}

prints 0 7
instead of 1 0


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-13 16:32 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-13 13:51 scanf %x bug Szabolcs Nagy
2012-03-13 15:05 ` Rich Felker
2012-03-13 16:24 ` Rich Felker
2012-03-13 16:32   ` Szabolcs Nagy

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).