Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!princeton!njin!rutgers!cmcl2!adm!smoke!gwyn From: gwyn@smoke.brl.mil (Doug Gwyn) Newsgroups: comp.std.c Subject: Re: printf precision for strings Message-ID: <15986@smoke.brl.mil> Date: 26 Apr 91 19:03:46 GMT References: <1991Apr26.143651.18289@watmath.waterloo.edu> Organization: U.S. Army Ballistic Research Laboratory, APG, MD. Lines: 7 In article <1991Apr26.143651.18289@watmath.waterloo.edu> rbutterw@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.