www.delorie.com/djgpp/doc/libc/libc_674.html   search  
libc.a reference

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

ScreenCols

Syntax

 
#include <pc.h>

int ScreenCols(void);

Description

This function returns the number of columns of the screen. It does so by looking at the byte at the absolute address 40:4Ah in the BIOS area. In text modes, the meaning of number of columns is obvious; in graphics modes, this value is the number of columns of text available when using the video BIOS functions to write text.

Return Value

The number of columns.

Portability

ANSI/ISO C No
POSIX No

Example

 
int available_columns = ScreenCols();


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004