Xref: utzoo comp.lang.c:40375 comp.lang.c++:14321 Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!ns-mx!hobbes.physics.uiowa.edu!maverick.ksu.ksu.edu!uafhp!engr!jdp From: jdp@engr.uark.edu (Dalton Porter) Newsgroups: comp.lang.c,comp.lang.c++ Subject: Re: decalring large arrays Message-ID: Date: 23 Jun 91 22:14:01 GMT References: <285B94A3.25253@maccs.dcss.mcmaster.ca> Sender: netnews@uafhp.uark.edu Followup-To: comp.lang.c Lines: 27 tomr@maccs.dcss.mcmaster.ca (Rickey Thomas Tom) writes: >I have a simple question. I sort some data. The easiest way to do this is to >decalre a large array to sotre this data and then sort the array. However, >it apopears that in a DOS environment, I am only allowed an array up to 64 K in size. Is there a way to declare larger arrays than this for sort. Is there another way that I could store a large quantity of data for sorting. > >Any comments would be appreciated. Thanks in advance. > >Rick I have used this ugly solution.... char huge *data; unsigned long size=DATASIZE; ..... .... data=(char huge *)farcalloc(size,sizeof(char)); /*access like this*/ *(data+i)=whatever; /* Dalton Porter, University of Arkansas, Fayetteville Dept. of Electrical Engineering E-Mail -> jdp@engr.uark.edu "I would get up but the boy crippled me." -Homer Simpson */