FreeBASIC  0.91.0
file_openencod.c
Go to the documentation of this file.
1 /* UTF-encoded file open function */
2 
3 #include "fb.h"
4 
5 /*:::::*/
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 ) )
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?
27 }
28