home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
QBasic & Borland Pascal & C
/
Delphi5.iso
/
C
/
Samples
/
C-ASM_VI.ARJ
/
PROGC.ZIP
/
PROGC023.C
< prev
next >
Wrap
Text File
|
1988-05-15
|
576b
|
13 lines
/************************************************************************/
/* Fetch current number of rows and columns */
/* from segment zero and print it */
/************************************************************************/
print_data_rc()
{
char far *p = 0; /* Declare far pointer */
printf("\nCols = %X hex", p[0x44A]); /* Print columns */
printf(", Rows = %X hex", p[0x484]+1);/* Print rows */
}