Re: Help with code

From: Marcelus Trojahn (
Date: 11/25/02

Prezado Circle,

Monday, November 25, 2002, 12:10:01 PM, voce escreveu:

> 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';

Yeah..   I  tryed  this  but  there's a problem... I need something like
"char *blabla[]" 'cause its size is variable...

The  first char is only a template. After I need to alter its characters
and  add more... So, the size of each line can change and I cant declare
it like a char blabla[size][size]...

Marcelus Trojahn

   | FAQ: |
   | Archives: |
   | Newbie List:   |

This archive was generated by hypermail 2b30 : 06/25/03 PDT