home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The C Users' Group Library 1994 August
/
wc-cdrom-cusersgrouplibrary-1994-08.iso
/
vol_300
/
361_01
/
dread.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-09-20
|
566b
|
26 lines
/* Dread.c --> Direct Video CRT Reads in Text Mode.
*
* Author: J.Ekwall 13 September 91
*
* Copyrighted to the Public Domain. Unlimited Distribution Authorized.
*
* User Assumes All Risks/Liabilities.
*
* Last Update: 13 September 91/EK
*/
#include <stdlib.h>
#include <stdek.h>
#include <gadgets.h>
void Dread(int X, int Y, char *Text, int N)
{
int Addr;
Addr = Vaddr(X, Y);
for (*Text = NULL; N-- && X++ < 80; *Text = NULL, Addr += 2)
*Text++ = Vpeek(Addr) & 0xFF;
}