delorie.com/djgpp/doc/libc/libc_681.html   search  
libc.a reference

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

ScreenRows

Syntax

 
#include <pc.h>

int ScreenRows(void);

Description

This function returns the number of rows of the text screen. It does so by looking at the byte at the absolute address 40:84h in the BIOS area. This method works only for video adapters with their own BIOS extensions, like EGA, VGA, SVGA etc.

Return Value

The number of rows.

Portability

ANSI/ISO C No
POSIX No

Example

 
int rows = ScreenRows();


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004