printf() with trailing % in format string
Hello all,
when outputting text with printf or a similar function, is there any
specification
how a trailing percent sign in the format string will be handled?
printf("An integer: %d and junk: %", 42);
My implementation (MS VC 6.0) silently swallows the trailing % sign (and
this
is what I need in this very special cir***stances), but the question remains
whether this is standard and/or if there is a standardized behaviour anyway.
Thanks for any answer!
Regards
Stefan
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]
|