I think it's a very good article... liked it very much..
I'm trying to deal with a little subject , may be you could help me.
Supose I declare a pointer to char and allocate some memory for it, and then, in the middle of the program turns out to be insuficient. how could I enlarge the amount of space allocated for it. for example, when reading unknown length input from the keybord.
Other thing I'm having some problem with is when trying to get the size of an array of pointers to char (char *ptrarr[]) . How could I know how many pointers to char are there ? sizeof(ptrarr) doesn't work.
by DAniel — Jun 28
I'm trying to deal with a little subject , may be you could help me.
Supose I declare a pointer to char and allocate some memory for it, and then, in the middle of the program turns out to be insuficient. how could I enlarge the amount of space allocated for it. for example, when reading unknown length input from the keybord.
Other thing I'm having some problem with is when trying to get the size of an array of pointers to char (char *ptrarr[]) . How could I know how many pointers to char are there ? sizeof(ptrarr) doesn't work.