Path: utzoo!attcan!uunet!samsung!usc!jarthur!nntp-server.caltech.edu!gap!manning From: manning@gap.caltech.edu (Evan Marshall Manning) Newsgroups: comp.lang.c Subject: Re: Turbo C large character array Keywords: TC, char, array, large, huge Message-ID: Date: 31 Jul 90 15:29:32 GMT References: <1990Jul27.193520.4689@ux1.cso.uiuc.edu> <6819@ozdaltx.UUCP> Sender: news@laguna.ccsf.caltech.edu Distribution: comp Organization: California Institute of Technology Lines: 25 doug@ozdaltx.UUCP (Doug Matlock) writes: >If all you need is a very large array, and you always plan to access its >elements through a pair of indicies, I suggest you use the tack taken in >"Numerical Recipes in C". A character "array" is defined as >char **x; >and allocated on the heap as >x = (char **)malloc(num_rows*sizeof(char)); ^^^^^^^^^^^^ try sizeof(char *)!!!! >for (i=0; i