1
0
mirror of https://github.com/fumiama/simple-dict.git synced 2026-06-19 10:26:24 +08:00

add ack cmd code

This commit is contained in:
源文雨
2022-04-17 16:46:28 +08:00
parent cf768d96da
commit 0bb8889ca4
4 changed files with 34 additions and 37 deletions

2
dict.c
View File

@@ -105,7 +105,7 @@ void close_dict(uint8_t lock_type, uint32_t index, pthread_rwlock_t* mu) {
puts("Close dict");
}
off_t get_dict_size(pthread_rwlock_t* mu) {
off_t get_dict_size() {
struct stat statbuf;
if(stat(filepath, &statbuf)==0) {
return statbuf.st_size;