> Consider de following variable:
>
> char *chmap[] {
> "-----\r\n",
> "-----\r\n",
> "-----\r\n" };
When you initialize a string this way, the data is constant, and therefore
cannot be modified. You could try something like this instead:
char chmap[5][10]; /* 5 rows, 10 columns */
strcpy(chmap[0], "-----\r\n");
Then later you can do this:
strcpy(chmap[0], "-A-A-\r\n");
or
chmap[0][1] = 'A';
Hope this helps.
Jamie
--
+---------------------------------------------------------------+
| FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
| Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
| Newbie List: http://groups.yahoo.com/group/circle-newbies/ |
+---------------------------------------------------------------+
This archive was generated by hypermail 2b30 : 06/25/03 PDT