Date: Thu, 30 Nov 1995 08:47:39 +0200 (IST) From: Eli Zaretskii To: Quantum Porcupine Cc: djgpp AT sun DOT soe DOT clarkson DOT edu Subject: Re: Declaring arrays inside generic function On Tue, 28 Nov 1995, Quantum Porcupine wrote: > > I have a generic function which has as one of its input parameters an int > > which identifies an array size. Within the function, I attempt to declare > > an array of int's: > > > > int item_count [array_size]; > > > > where array_size is the input parameter. When I look at the array in the > > debugger (gdb) however, what i see is an array of int pointers (I think) > > - something like int (*) [60000] (the 60000 is approximate). If I > > That's probably due to the old 64k segment limit imposed by DOS... it's > probably just splitting it across many segments like any coder who's > worked in realmode (yeah, I know, this is pmode, weird huh?) has done > many times... DJGPP doesn't impose that limit at all. When you call a DOS function (like write()) from DJGPP it breaks your data into chunks that DOS can grok and feeds them in sequence. Anyway, even this has nothing to do with this thread main issue which doesn't involve any DOS calls whatsoever.