The \c escape

Peter da Silva peter at ficc.UUCP
Wed Jun 22 02:24:19 AEST 1988


In article <8127 at brl-smoke.ARPA>, gwyn at brl-smoke.ARPA (Doug Gwyn ) writes:
> In article ... karl at haddock.ima.isc.com (Karl Heuer) writes:
> >the nonexistence of a spelling for the character constant '\x234\c5'...

> Probably not.  Multiple-character character constants are unportable and
> considered bad style.  They're only permitted because they were in previous
> practice.  Many of us don't think you should ever try to make use of them.

(1) OK, how do you spell "\x234\c5"? "\x234""5"? Bleagh.

(2) What's wrong with a readable and maintainable way of initialising a
    32-bit unsigned integer to 0x464F524DL? You prefer that (or ('F'<<24)|
    ('O'<<16)|('R'<<8)|('M')) to 'FORM'?
-- 
-- Peter da Silva, Ferranti International Controls Corporation.
-- Phone: 713-274-5180. Remote UUCP: hoptoad!academ!uhnix1!sugar!peter.



More information about the Comp.std.c mailing list