aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
blob: 33c61ed8429051c14b8d82b102c2fbaa0d85570f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#pragma once

#include <sqlite3.h>
#include <stdio.h>

/*
 * Copy of a char to a newly created string of the same size.
 */
char* copy_achar(const char*);

int load_or_save_db(sqlite3 *pInMemory, const char *zFilename, int isSave);

unsigned int count_file_lines(FILE *file);