Um, first of all, shouldn't the conversion character for that be %O?
Um, no? I'd consider a sscanf( "17", "%O", myvar ); that sets myvar to anything but the integer (int type) 17 buggy.
Secondly, how would sscanf know how many characters of the string to consume?
Implementation defined; either, one settles for Niels' suggestion, or something more to your liking that does not eat ".":s, "/":s and so on (if my general understanding of your likings is even half correct :-).
/ Johan Sundström (Achtung Liebe!)
Previous text:
2004-02-07 16:13: Subject: sscanf and Gmp.mpq
Um, first of all, shouldn't the conversion character for that be %O? Secondly, how would sscanf know how many characters of the string to consume?
/ Marcus Comstedt (ACROSS) (Hail Ilpalazzo!)