www.delorie.com/djgpp/doc/libc/libc_196.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

dosmemputl

Syntax

 
#include <sys/movedata.h>

void _dosmemputl(const void *buffer, size_t xfers,
                 unsigned long offset);

Description

This function transfers data from the program's virtual address space to MS-DOS's conventional memory space, using only long-word (32-bit) transfers. The offset is a physical address, which can be computed from a real-mode segment/offset pair as follows:

 
offset = segment * 16 + offset;

The xfers is the number of long-words to transfer, and buffer is a pointer to somewhere in your virtual address space (such as memory obtained from malloc) where the data will come from.

Return Value

None.

Portability

ANSI/ISO C No
POSIX No

Example

 
unsigned short save_screen[25][80];
_dosmemputl(save_screen, 40*25, 0xb8000);


  webmaster   donations   bookstore     delorie software   privacy  
  Copyright 2004   by DJ Delorie     Updated Apr 2004