home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Microsoft Programmer's Library 1.3
/
Microsoft-Programers-Library-v1.3.iso
/
sampcode
/
prof_c
/
05oslib
/
bios
/
put_ch.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
UTF-8
Wrap
C/C++ Source or Header
|
1988-08-11
|
297 b
|
20 lines
/*
* put_ch -- display a character in the prevailing video
* attribute and advance the cursor position
*/
#include <local\video.h>
int
put_ch(ch, pg)
register char ch;
int pg;
{
int r, c, c0;
readcur(&r, &c, pg);
writec(ch, 1, pg);
putcur(r, ++c, pg);
return (1);
}