http://www.eumus.edu.uy/eme/c/c-notes_summit/intermediate/sx9.html
The example is done with an integer but just swap Char for int and MemPtrNew for malloc (don't forget to add 1 to the char string size for the string terminator). If you need to keep the allocated data movable (which is recommended if the array is to last awhile) then use handles and lock them to the Char Ptr when needed. ----- Original Message ----- From: "Rahul S" <[EMAIL PROTECTED]> To: "Palm Developer Forum" <[EMAIL PROTECTED]> Sent: Thursday, February 13, 2003 10:35 AM Subject: facing problem with Array strings > Hello All, > > I am writing an industrial automation application on Palm. I am facing > problem working with array of strings. I want to declare a Double pointers. > Ex Char **String; > So that, I can add any number of string of any width. > > Presently I have hardcoded to the number of strings in the array. > That is Char *String[20]....... By this I can store only maximum of 20 > strings at any cost. > > That is how to work with Double pointers. > > Can anyone help me in coming out of this problem. > > Thanks a lot. > Very eagerly waiting for some help. > > Thanks again > Rahul > > > -- > For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/ > -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
