This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Is this code valid under g++


LLeweLLyn Reese <llewelly at lifesupport dot shutdown dot com> writes:

>>         while (*item == ' ' || *item == '   ')
>
> No. '   ' is a multicharacter char literal. It is not part of standard
>     C++,

That was what I thought, but it's ok, although its value is
implementation-defined. See 2.13.2/1

> not portable in general, and AFAIK a gcc extension. If you
>     mean a tab, use \t.

[snip]

-- 
Oscar


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]