02-22-2006 03:42 AM
02-22-2006 05:07 AM
Every malloc() (or equivalent type of function eg calloc()) needs a corresponding free(), so yes you do need to use the code you suggested. (Strictly speaking you are allocating space for pointers, not integers - you might want to tidy up the sizeof() statements accordingly.)
JR
02-23-2006 02:47 AM
02-23-2006 10:58 AM
02-24-2006 03:32 AM
Thank you for your help JR
Regards
Juan