FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
con_input.c
Go to the documentation of this file.
1
/* input function */
2
3
#include "
fb.h
"
4
5
FBCALL
int
fb_ConsoleInput
(
FBSTRING
*text,
int
addquestion,
int
addnewline )
6
{
7
FB_INPUTCTX
*
ctx
;
8
int
res;
9
10
fb_DevScrnInit_Read
( );
11
12
if
(
fb_IsRedirected
(
TRUE
) )
13
{
14
/* del if temp */
15
fb_hStrDelTemp
( text );
16
17
return
fb_FileInput
( 0 );
18
}
19
20
ctx =
FB_TLSGETCTX
( INPUT );
21
22
fb_StrDelete
( &ctx->
str
);
23
ctx->
handle
= 0;
24
ctx->
status
= 0;
25
ctx->
index
= 0;
26
27
res =
fb_LineInput
( text, &ctx->
str
, -1, 0, addquestion, addnewline );
28
29
return
res;
30
}
rtlib
con_input.c
Generated on Thu Jan 23 2014 19:40:07 for FreeBASIC by
1.8.4