I had thought to have answered that question. The C construct char text character[] = 'Lincoln''s Doctor''s Dog' ;
does jobs of that sort. --jg On 9/4/12, Paul Gilmartin <paulgboul...@aim.com> wrote: > On Tue, 4 Sep 2012 15:01:37 -0400, Thomas David Rivers wrote: >> >> cxx: t.c line 3:Error #144: a value of type "const char [7]" cannot >>be used to initialize an entity of type "char [6]" >> char s6[ 6 ] = "wombat"; >> > Is there any convenient way to perform this initialization? (I don't > consider either overallocating the array or enumerating individual > chars in a multiple initializer convenient.) > > Thanks, > gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN