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
4
FBCALL
void
fb_ConsoleGetSize
(
int
*cols,
int
*rows )
5
{
6
int
nrows, ncols;
7
8
fb_InitConsoleWindow
();
9
10
if
(
FB_CONSOLE_WINDOW_EMPTY
() )
11
{
12
ncols =
FB_SCRN_DEFAULT_WIDTH
;
13
nrows =
FB_SCRN_DEFAULT_HEIGHT
;
14
}
15
else
16
{
17
fb_hConsoleGetWindow
(
NULL
,
NULL
, &ncols, &nrows );
18
}
19
20
if
( cols !=
NULL
)
21
*cols = ncols;
22
if
( rows !=
NULL
)
23
*rows = nrows;
24
}
rtlib
win32
io_getsize.c
Generated on Thu Jan 23 2014 19:40:09 for FreeBASIC by
1.8.4