Strings in C (Re: ambiguous ?)

Peter da Silva peter at ficc.uu.net
Thu Oct 26 02:19:48 AEST 1989


In article <2522 at munnari.oz.au> ok at cs.mu.oz.au (Richard O'Keefe) writes:
> C provides direct
> syntax for literals of only one type, but as I showed above, it isn't
> hard to come up with macros to declare named constants of the other
> types.

In most Macintosh C compilers that I've seen, the syntax !"%p...."! is
used to indicate byte-counted strings. P stands for "pascal".

Was X3J11 aware of this? Or are the Mac compiler vendors going to change?
-- 
Peter da Silva, *NIX support guy @ Ferranti International Controls Corporation.
Biz: peter at ficc.uu.net, +1 713 274 5180. Fun: peter at sugar.hackercorp.com. `-_-'
"That particular mistake will not be repeated.  There are plenty of        'U`
 mistakes left that have not yet been used." -- Andy Tanenbaum (ast at cs.vu.nl)



More information about the Comp.lang.c mailing list