printf precision for strings

Doug Gwyn gwyn at smoke.brl.mil
Sat Apr 27 05:03:46 AEST 1991


In article <1991Apr26.143651.18289 at watmath.waterloo.edu> rbutterw at watmath.waterloo.edu (Ray Butterworth) writes:
>Shouldn't the precision of 0 guarantee that no output will occur,
>or does using the bad pointer mean all bets are off?

"The argument SHALL be a pointer to an array of character type."
Violation of a "shall" produces undefined behavior.
You're lucky it didn't ABEND.



More information about the Comp.std.c mailing list