Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!shadooby!samsung!ginosko!aplcen!haven!adm!smoke!gwyn From: gwyn@smoke.BRL.MIL (Doug Gwyn) Newsgroups: comp.lang.c Subject: Re: Strings in C (Re: ambiguous ?) Message-ID: <11428@smoke.BRL.MIL> Date: 27 Oct 89 18:37:06 GMT References: <11398@smoke.BRL.MIL> <14115@lanl.gov> <2522@munnari.oz.au> <6676@ficc.uu.net> <2421@convex.UUCP> <2742@hub.UUCP> Reply-To: gwyn@brl.arpa (Doug Gwyn) Organization: Ballistic Research Lab (BRL), APG, MD. Lines: 10 In article <2742@hub.UUCP> pete@cavevax.ucsb.edu writes: >In article <2421@convex.UUCP> grogers@sushi.uucp (Geoffrey Rogers) writes: >> In article <6676@ficc.uu.net> peter@ficc.uu.net (Peter da Silva) writes: >>>In most Macintosh C compilers that I've seen, the syntax !"%p...."! is >Actually, the syntax is "\p...", but that's only a nit I had to pick. Oh, if THAT's the issue, then it's not a problem. Any program containing a string literal like "\pXXX" has stepped into the Twilight Zone of "undefined behavior"; the implementation is free to assign a "counted string" meaning to this if it happens to be useful to do so.