Mail Archives: djgpp/1998/05/18/07:15:57
From: | cgb3 AT york DOT ac DOT uk (Colin Blackburn)
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | memory allocation
|
Date: | Mon, 18 May 1998 11:25:17 +0100
|
Organization: | Psychology, University of York
|
Lines: | 10
|
Sender: | cgb3 AT york DOT ac DOT uk
|
Message-ID: | <MPG.fca1ce9290f6bfd98981e@news.york.ac.uk>
|
NNTP-Posting-Host: | tracker.york.ac.uk
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I need to malloc a chunk of memory < 64K, I also need to be sure that
this memory does not cross a 64K page boundary. At the moment, using
Borland C, I malloc a chunk and then use FP_SEG() and FP_OFF() and the
buffer size to check whether it crosses a boundary. I am migrating my
code to djgpp, so can someone tell me what functions I should be looking
to use under djgpp? Or, indeed, another way to do it altogether.
Thanks,
Colin
- Raw text -