Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!cs.utexas.edu!usc!elroy.jpl.nasa.gov!zardoz.cpd.com!dhw68k!zen From: zen@dhw68k.cts.com (Gary Grossman) Newsgroups: comp.sys.mac.programmer Subject: Re: Need large array on Think C. Message-ID: <1990Jun1.230618.10338@dhw68k.cts.com> Date: 1 Jun 90 23:06:18 GMT References: <26645@<265986A9> <1232500001@ENS.Prime.COM> <1990May30.114952.230@kth.se> Reply-To: zen@dhw68k.cts.com (Gary Grossman) Distribution: usa Organization: Wolfskill & Dowling residence; Anaheim, CA (USA) Lines: 16 There's no reason to go through all that mishmash with an array of pointers when C views an array the same way it does a pointer. This is the simplest way I can think of to do this: typedef char FOO[300]; FOO *buf; buf = NewPtr((Size) 100*sizeof(FOO)); Then buf could be treated as a normal array, requiring far less space than allocating an array of pointers. I think the FOO *buf could also be expressed as char *(buf[300]) but I am not sure. Gary