P
Pacher R. Dragos
Consider the following code:
char *type[200];
char buf[1];
..............
read(handle, buf, 1);
*type[counter++]=buf[0];
And what I need is to put the buf into the type[counter] but it thrown
an cannot read memory exception..
What I would like to have in memory is:
type[0]="text1";
type[1]="text2";
I need some way of inline arithmetics to do it?
char *type[200];
char buf[1];
..............
read(handle, buf, 1);
*type[counter++]=buf[0];
And what I need is to put the buf into the type[counter] but it thrown
an cannot read memory exception..
What I would like to have in memory is:
type[0]="text1";
type[1]="text2";
I need some way of inline arithmetics to do it?