how do i allocate memory to a 2-dim char array:
char **array;
can i set and look at a row like one whose size is specified?
e.g.
strcpy(array[0],"This is an example");
printf("output : %s\n",array[0]);
TIA, rotis23
how do i allocate memory to a 2-dim char array:
char **array;
can i set and look at a row like one whose size is specified?
e.g.
strcpy(array[0],"This is an example");
printf("output : %s\n",array[0]);
TIA, rotis23
A good paper to read.
Also, do a board search, this has been asked a few times before.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
thanks hammer (again),
the link seems to be broken.
can't seem to find an answer to this problem.
maybe i just can't search!
The link does work from here, must be your ISP or something.
In the meantime, review this thread:
http://www.cprogramming.com/cboard/s...threadid=17742
Make sure you read all the posts in it.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]
ok, thats good info.
gonna use a linked list though.