On Fri, Aug 08, 2003 at 03:41:24PM -0400, bullshark wrote: > On Fri, 8 Aug 2003 09:51:28 -0700, Dave Carrigan <[EMAIL PROTECTED]> wrote: > > > > >On Fri, Aug 08, 2003 at 12:26:13PM -0400, bullshark wrote: > > > >> >static char* gPlateString = > >> >"PL3/16x\0PL1/4x\0PL5/16x\0PL3/8x\0PL1/2x\0PL5/8x\0";
> It's still a cumbersome thing, hard to read, and fraught with peril. I didn't say it was necessarily good practice; but it is legal C. > What happens if the following character is numeric, instead of a 'P'? Use string concatenation: char* foo = "1st place\0" "2nd place\0" "3rd place" That will create an array of chars with 30 elements. -- Dave Carrigan Seattle, WA, USA [EMAIL PROTECTED] | http://www.rudedog.org/ | ICQ:161669680 UNIX-Apache-Perl-Linux-Firewalls-LDAP-C-C++-DNS-PalmOS-PostgreSQL-MySQL Dave is currently listening to Mozart - 3. Rondo (Allegro assai) (Piano Concerto in D minor, K. 466) -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/