Mail Archives: djgpp/1997/03/17/19:58:48
From: | "Thomas Harte" <T DOT Harte AT btinternet DOT com>
|
Newsgroups: | comp.os.msdos.djgpp
|
Subject: | Messing with strings
|
Date: | 17 Mar 1997 23:42:20 GMT
|
Organization: | SoftySoft
|
Lines: | 16
|
Message-ID: | <01bc332c$d1b4dcc0$452349c2@default>
|
NNTP-Posting-Host: | host-73-35-69.btinternet.com
|
To: | djgpp AT delorie DOT com
|
DJ-Gateway: | from newsgroup comp.os.msdos.djgpp
|
I know this isn't strictly the fodder of this newsgroup - it's more a
beginners C sort of thing, but I guess it applies here because under TCC or
whatever I used to mess with memory locations to achieve the effect, and
DJGPP throws me by being protected mode.
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. I could write a
for/next routine type thing, but this would be slow. Is there a way similar
to memcpy ? Like I said, on other compilers because I did not know the
command, I would just mess with the positions in RAM, but that is not
something I can get to work under protected mode.
Any help would be greatly appreciated, and extra appreciation will go out
to those who e-mail me instead of replying here, where I only come about
once a week. Thanks though for anyone that helps at all!
-Thomas (T DOT Harte AT btinternet,com)
- Raw text -