FreeBASIC
0.91.0
Main Page
Data Structures
Files
File List
Globals
file_free.c
Go to the documentation of this file.
1
/* freefile function */
2
3
#include "
fb.h
"
4
5
/*:::::*/
6
FBCALL
int
fb_FileFree
(
void
)
7
{
8
int
i;
9
10
FB_LOCK
();
11
12
for
( i = 1; i <= (
FB_MAX_FILES
-
FB_RESERVED_FILES
); i++ ) {
13
FB_FILE
*
handle
=
FB_FILE_TO_HANDLE
(i);
14
if
(handle->
hooks
==
NULL
) {
15
FB_UNLOCK
();
16
return
i;
17
}
18
}
19
20
FB_UNLOCK
();
21
22
return
0;
23
}
rtlib
file_free.c
Generated on Thu Jan 23 2014 19:40:11 for FreeBASIC by
1.8.4