FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
file_openencod.c
Go to the documentation of this file.
1
/* UTF-encoded file open function */
2
3
#include "
fb.h
"
4
5
/*:::::*/
6
FBCALL
int
fb_FileOpenEncod
7
(
8
FBSTRING
*str,
9
unsigned
int
mode,
10
unsigned
int
access,
11
unsigned
int
lock,
12
int
fnum,
13
int
len,
14
const
char
*encoding
15
)
16
{
17
if
( !
FB_FILE_INDEX_VALID
( fnum ) )
18
return
fb_ErrorSetNum
(
FB_RTERROR_ILLEGALFUNCTIONCALL
);
19
20
FB_FILE_ENCOD
encod =
fb_hFileStrToEncoding
( encoding );
21
22
return
fb_FileOpenVfsEx
(
FB_FILE_TO_HANDLE
(fnum), str, mode,
23
access, lock, len, encod,
24
(encod ==
FB_FILE_ENCOD_ASCII
?
25
fb_DevFileOpen
:
26
fb_DevFileOpenEncod
) );
27
}
28
rtlib
file_openencod.c
Generated on Thu Jan 23 2014 19:40:11 for FreeBASIC by
1.8.4