Hello Bartosz, On Mon, 10 Jul 2017 10:22:37 +0200 Bartosz Brachaczek wrote: > > EXAMPLE 5 The call: > > > > #include > > /* ... */ > > int n, i; > > n = sscanf("foo % bar 42", "foo%%bar%d", &i); > > > > will assign to 'n' the value 1 and to 'i' the value 42 because input > > white-space characters are skipped for both the '%' and 'd' > > conversion specifiers. > > Now, the code in the example is clearly broken, as either the format > string should be "foo%% bar%d" or the input string should be > "foo %bar 42", but the explanation does imply that '%%' consumes > whitespace. Yes, I have noted this as an editorial fix for C17 Thanks for reporting Jens -- :: INRIA Nancy Grand Est ::: Camus ::::::: ICube/ICPS ::: :: ::::::::::::::: office Strasbourg : +33 368854536 :: :: :::::::::::::::::::::: gsm France : +33 651400183 :: :: ::::::::::::::: gsm international : +49 15737185122 :: :: http://icube-icps.unistra.fr/index.php/Jens_Gustedt ::