Article View: comp.std.c
Article #2819Re: printf precision for strings
From: Doug Gwyn
Date: Fri, 26 Apr 1991 19:03
Date: Fri, 26 Apr 1991 19:03
7 lines
832 bytes
832 bytes
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.
Technical Details
Message-ID:
<15986@smoke.brl.mil>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!udel!princeton!njin!rutgers!cmcl2!adm!smoke!gwynReferences:
<1991Apr26.143651.18289@watmath.waterloo.edu>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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