Fog Creek Software
Discussion Board




Allocating array of strings

If we are allocating 2-D using char**, is there a way to ensure that allocation is done in a single page, means allocation of array pointers and there values are done in near by location, so as to avoid page fault, so tthat reading of string are done fast? Is there a better way than char**,  since we donot know rows and columns and the values to be stored are strings ?

Viren Sagar
Monday, June 27, 2005

*  Recent Topics

*  Fog Creek Home