projects
/
idzebra-moved-to-github.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
701b0cbd0a7e9dffb4c1bbe623c6e30566653989
[idzebra-moved-to-github.git]
/
dict
/
dclose.c
1
#include <sys/types.h>
2
#include <fcntl.h>
3
#include <unistd.h>
4
#include <stdio.h>
5
#include <stdlib.h>
6
7
#include <dict.h>
8
9
int dict_bf_close (Dict_BFile dbf)
10
{
11
int i;
12
dict_bf_flush_blocks (dbf, -1);
13
14
free (dbf->all_blocks);
15
free (dbf->all_data);
16
free (dbf->hash_array);
17
i = bf_close (dbf->bf);
18
free (dbf);
19
return i;
20
}