FreeBASIC  0.91.0
file_openscrn.c
Go to the documentation of this file.
1 /* open SCRN */
2 
3 #include "fb.h"
4 
5 /*:::::*/
6 FBCALL int fb_FileOpenScrn ( FBSTRING *str_filename, unsigned int mode,
7  unsigned int access, unsigned int lock,
8  int fnum, int len, const char *encoding )
9 {
10  if( !FB_FILE_INDEX_VALID( fnum ) )
12 
13  fb_DevScrnInit( );
14 
15  return fb_FileOpenVfsEx( FB_FILE_TO_HANDLE(fnum),
16  str_filename,
17  mode,
18  access,
19  lock,
20  len,
21  fb_hFileStrToEncoding( encoding ),
23 }