Help With Array of Pointers to chars
Dean Jansa
jansa at cat27.cs.wisc.edu
Wed Apr 3 05:38:49 AEST 1991
I a quick Question for all of you...
What is the fastest way, ( read efficent use of memory and quick ) to
transfer strings from a struct i.e:
struct something
{
string[10];
string2[10];
string3[10];
.
.
.
};
into a array of pointers to chars:
char *myarray[10];
I need to malloc each pointer to char to be able to hold 10 chars in this
example then do a strcpy. Any easier ways out there??
Thanks
C ya...
More information about the Comp.lang.c
mailing list