Partial port to WIN95/NT.
[idzebra-moved-to-github.git] / dict / dclose.c
1 /*
2  * Copyright (C) 1994, Index Data I/S 
3  * All rights reserved.
4  * Sebastian Hammer, Adam Dickmeiss
5  *
6  * $Log: dclose.c,v $
7  * Revision 1.4  1997-09-09 13:38:01  adam
8  * Partial port to WIN95/NT.
9  *
10  * Revision 1.3  1994/09/01 17:49:36  adam
11  * Removed stupid line. Work on insertion in dictionary. Not finished yet.
12  *
13  */
14
15 #include <sys/types.h>
16 #include <fcntl.h>
17 #include <stdio.h>
18 #include <stdlib.h>
19
20 #include <dict.h>
21
22 int dict_bf_close (Dict_BFile dbf)
23 {
24     int i;
25     dict_bf_flush_blocks (dbf, -1);
26     
27     xfree (dbf->all_blocks);
28     xfree (dbf->all_data);
29     xfree (dbf->hash_array);
30     i = bf_close (dbf->bf);
31     xfree (dbf);
32     return i;
33 }