FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
io_getsize.c
Go to the documentation of this file.
1
#include "../fb.h"
2
#include "
fb_private_console.h
"
3
#include <pc.h>
4
5
FBCALL
void
fb_ConsoleGetSize
(
int
*cols,
int
*rows )
6
{
7
#if 0
8
int
toprow, botrow;
9
#endif
10
11
if
( cols !=
NULL
) {
12
*cols = ScreenCols();
13
}
14
15
if
( rows !=
NULL
) {
16
#if 0
17
fb_ConsoleGetView
( &toprow, &botrow );
18
*rows = botrow - toprow + 1;
19
#else
20
*rows = ScreenRows();
21
#endif
22
}
23
}
rtlib
dos
io_getsize.c
Generated on Thu Jan 23 2014 19:40:09 for FreeBASIC by
1.8.4