| www.delorie.com/archives/browse.cgi | search |
| Date: | Tue, 18 Mar 1997 14:32:18 +0300 (IDT) |
| From: | Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> |
| To: | Thomas Harte <T DOT Harte AT btinternet DOT com> |
| cc: | djgpp AT delorie DOT com |
| Subject: | Re: Messing with strings |
| In-Reply-To: | <01bc332c$d1b4dcc0$452349c2@default> |
| Message-ID: | <Pine.SUN.3.91.970318143157.17465Y-100000@is> |
| MIME-Version: | 1.0 |
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.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |