movedata
raw OCR
Copies n bytes.
Defined in header <mem.h>
Syntax
#include <mem.h>
void movedata(unsigned srcseg, unsigned srcoff, unsigned dstseg,
unsigned dstoff, size_t n);
Portability
| DOS | UNIX | Windows | ANSI C | C++ only |
|---|---|---|---|---|
| ■ | ■ |
Remarks
movedata copies n bytes from the source address {srcsegisrcoff) to the destination address (dstsegidstoff).
movedata is a means of moving blocks of data that is independent of memory model.
Return value
None.
See also
Example
#include <mem.h>
#define M0NO_BASE OxBOOO
char buf [80*25*2];
/* Saves the contents of the monochrome screen in buffer. */
void save_mono_screen(char near *buffer)
movedata (MONO_BASE, 0, _DS, (unsigned)buffer, 80*25*2);
}
int main (void)
save_mono_screen(buf );
return(0);
Differences from modern implementations
Nothing recorded yet.
Modern references
These are search links, not yet checked by hand.
Stable link: /3.1/mem.h/movedata/
· short form /3.1/movedata/