CharPtr array[10];
int i;
for (i=0; i<10; i++) {
array[i] = MemPtrNew(10);
MemSet(array[i], 10, 0);
}
/* the above code creates 10, 10-character arrays
** and zeros the contents. A 10-character array is
** suitable for holding 9-characters plus the string
** terminator ('\0'). The sizes you use will of course
** be determined by your program requirements.
*/
--
-Richard M. Hartman
[EMAIL PROTECTED]
186,000 mi/sec: not just a good idea, it's the LAW!
Patrick Ouellet wrote in message <26673@palm-dev-forum>...
>
>I need to know how to declare a CharPtr Array and initialize it ???
>
>--
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>Patrick Ouellet - Programmeur
>[EMAIL PROTECTED]
>Recherche & Devloppement
>Les Entreprise Microtec inc.
>=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
>
>
>
>
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/