Hello Forum, When a structure is created, does anyone know if it's elements are initialised? e.g. initegers set to 0 and pointers/references set to NULL.
The reason I am asking is that my error handling code deallocates memory by checking if mem pointers are not NULL. If structure elements are initialised, I can check to see if memory has been allocated as follows: if (someStruct.memPointer) ... If structure elements are not initialised, can anyone recommend a way to determine if a pointer is pointing to allocated memory (instead of just garbage). Cheers, Joe __________________________________ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
