declaring array of strings dynamically!!!!
somebody out there would like to help me???
My BIG problem:
-----------------------------
is there a way to assign an array of strings dynamically in C ?(e.g. malloc())
I tried to declare a char pointer: char **str;
and..
try to assign:
*str = (char *)(malloc (20));
is this a proper assignment or allocating an array of strings in C?
I compiled it successfully, but crashed my system as I runned it, what's the problem with my code??? can somebody help me???
help plz.
thanks a lot,
REYAL