aboutsummaryrefslogtreecommitdiff
path: root/lib/util.h
blob: c03dbae7654b1ac748acd438ed6ab0f4975a2427 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#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);