Path: utzoo!attcan!uunet!cs.utexas.edu!know!zaphod.mps.ohio-state.edu!usc!ucsd!pacbell.com!ames!sgi!shinobu!odin!surfside!jindak From: jindak@surfside.sgi.com (Chris Schoeneman) Newsgroups: comp.lang.c Subject: Re: Turbo C large character array Keywords: TC, char, array, large, huge Message-ID: <11162@odin.corp.sgi.com> Date: 31 Jul 90 16:00:11 GMT References: <1990Jul27.193520.4689@ux1.cso.uiuc.edu> <1990Jul30.204053.28769@ux1.cso.uiuc.edu> Sender: news@odin.corp.sgi.com Distribution: comp Organization: Silicon Graphics, Inc., Mountain View, CA Lines: 28 In article <1990Jul30.204053.28769@ux1.cso.uiuc.edu> gordon@osiris.cso.uiuc.edu (John Gordon) writes: > > Well, I managed to solve my problem, with thanks to all who posted and >e-mailed me suggestions. The final solution: > > char huge menu[1200]; > > for(i = 0; i < 1200; i++) > menu[i] = farmalloc(80); Almost. But char huge *menu[1200]; might work a little better. Why not just malloc the whole thing? 'Huge' arrays can be larger than 64K, they just can't be static. char huge *menu; menu=(char*) farmalloc(1200*80); should do what you want. Chris Schoeneman | I was neat, clean, shaved and sober, jindak@surfside.esd.sgi.com | and I didn't care who knew it. Silicon Graphics, Inc. | -Raymond Chandler Mountain View, CA | (The Big Sleep)