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: NNTP-Posting-Host: tracker.york.ac.uk To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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