Date: Tue, 18 Mar 1997 14:32:18 +0300 (IDT) From: Eli Zaretskii To: Thomas Harte cc: djgpp AT delorie DOT com Subject: Re: Messing with strings In-Reply-To: <01bc332c$d1b4dcc0$452349c2@default> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On 17 Mar 1997, Thomas Harte wrote: > Anyway, I want to know, how, in DJGPP, do you shift every value of a > variable down one in a dimension, ie so that the value at x[n] is written > to x[n+1], the value at x[n+1] to x[n+2], and so on. Use the `memmove' library function. It's like `memcpy', but can handle overlapping regions, like in your case. It is also ANSI C, so it should be supported on any other C compiler out there.