FreeBASIC  0.91.0
dev_file_unlock.c
Go to the documentation of this file.
1 /* file device */
2 
3 #include "fb.h"
4 
6 {
7  int res;
8  FILE *fp;
9 
10  if( size==0 )
12 
13  FB_LOCK();
14 
15  fp = (FILE*) handle->opaque;
16  if( fp == NULL ) {
17  FB_UNLOCK();
19  }
20 
21  res = fb_hFileUnlock( fp, position, size );
22 
23  FB_UNLOCK();
24 
25  return res;
26 }