FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
file_print.c
Go to the documentation of this file.
1
/* print # function (formating is done at io_prn) */
2
3
#include "
fb.h
"
4
5
/*:::::*/
6
int
fb_hFilePrintBufferEx
(
FB_FILE
*
handle
,
const
void
*
buffer
,
size_t
len )
7
{
8
int
res;
9
10
fb_DevScrnInit_Write
( );
11
12
if
( !
FB_HANDLE_USED
(handle) )
13
return
fb_ErrorSetNum
(
FB_RTERROR_ILLEGALFUNCTIONCALL
);
14
15
res =
fb_FilePutDataEx
( handle, 0, buffer, len,
TRUE
,
TRUE
,
FALSE
);
16
17
return
res;
18
}
19
20
/*:::::*/
21
int
fb_hFilePrintBuffer
(
int
fnum,
const
char
*
buffer
)
22
{
23
return
fb_hFilePrintBufferEx
(
FB_FILE_TO_HANDLE
(fnum),
24
buffer, strlen( buffer ) );
25
}
rtlib
file_print.c
Generated on Thu Jan 23 2014 19:40:11 for FreeBASIC by
1.8.4