All ..
I am having a pointer array . And trying to store the addess into that pointer array . please see below the problem i faced
code:
int cnt1;
char *t_array[1000];
char *f_array[1000];
for\(cnt1=0; cnt1<1000; cnt1\+\+\)
\{
t_array[cnt1] = buf\+\(cnt1*6\);
f_array[cntl] ="123456789";
\}
after that i a looping through an array
cnt1=0;
while \(somearray ends\)
\{
f_array[cnt1] = arrayvalues;
cnt1\+\+;
\}
when i print the f_array values like this
printf \("\\n **********************************\\n"\);
printf \("\\nARRAY F_ARRAY \\n ==> %s", f_array[0]\);
printf \("\\nARRAY F_ARRAY \\n ==> %s", f_array[1]\);
printf \("\\n **********************************\\n"\);
I am getting the last values for all f_array .. I know that f_array is apointer and having the addres of arrayvalues so it is printing the last values ..
Is there some other way so that i need all values of array values to be stored in f_array ??....
With out using double dimensional array.
Thakns,
Arun...