Date: Thu, 8 Aug 1996 09:54:12 +0200 (IST) From: Eli Zaretskii To: Kelly BARRETT Cc: djgpp AT delorie DOT com Subject: Re: pointers and ptr arith. In-Reply-To: <4u6fbn$p3u@mulga.cs.mu.OZ.AU> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 6 Aug 1996, Kelly BARRETT wrote: > 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. Please post the shortest program or code fragment that exhibits the problem. From your description it is not clear what are you trying to do and what does `memory folds back' mean.