![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Storing PID | Porthos | Shell Programming and Scripting | 1 | 04-23-2008 02:41 AM |
| Storing a variable? | hoover90 | Shell Programming and Scripting | 4 | 01-26-2008 09:39 PM |
| far pointer | useless79 | High Level Programming | 1 | 11-08-2007 05:13 AM |
| create array holding characters from sring then echo array. | rorey_breaker | Shell Programming and Scripting | 5 | 09-28-2007 08:42 AM |
| pointer | sarwan | High Level Programming | 1 | 11-15-2005 06:41 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
Storing pointer array in C
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... |
|
||||
|
Arun,
You are posting this in a wrong forum. People will not look into this as this is not their experties. There is a another forum for this. Thanks, Namish |
| Sponsored Links | ||
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|