Strings in C (Re: ambiguous ?)

Doug Gwyn gwyn at smoke.BRL.MIL
Sat Oct 28 04:37:06 AEST 1989


In article <2742 at hub.UUCP> pete at cavevax.ucsb.edu writes:
>In article <2421 at convex.UUCP> grogers at sushi.uucp (Geoffrey Rogers) writes:
>> In article <6676 at ficc.uu.net> peter at 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.



More information about the Comp.lang.c mailing list