www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/08/07/09:00:16

Xref: news2.mv.net comp.os.msdos.djgpp:6887
From: kbarr AT ecr DOT mu DOT OZ DOT AU (Kelly BARRETT)
Newsgroups: comp.os.msdos.djgpp
Subject: pointers and ptr arith.
Date: 6 Aug 1996 03:49:11 GMT
Organization: Comp Sci, University of Melbourne
Lines: 13
Message-ID: <4u6fbn$p3u@mulga.cs.mu.OZ.AU>
NNTP-Posting-Host: ren.ecr.mu.oz.au
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I am just after a bit of help.

In a program I'm writing, I have a chunk of memory over 1Mb malloced,
with just a standard int ptr pointing to it. Now can I use standard
pointer arithmetic to access that block, or even standard array indicing?
Because I have tried this, and the memory seems to fold back like it can't
handle accessing deep into the big chunk. 
I hope someone can help, as I have spent a week trying to solve this 
frustrating problem.

Thanx in advance,
Kelly.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019