home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Interactive Guide
/
c-cplusplus-interactive-guide.iso
/
c_ref
/
csource4
/
273_01
/
locate.cc
< prev
next >
Wrap
Text File
|
1987-09-28
|
231b
|
10 lines
#include <dos.h>
locate(int row, int col)
/* Position the cursor at row,col */
{
union REGS inregs;
inregs.h.ah=2; inregs.h.dh=row; inregs.h.dl=col;
inregs.h.bh=0;
int86(0x10,&inregs,&inregs);
}