diff options
author | Gabriel A. Giovanini <mail@gabrielgio.me> | 2024-02-14 12:25:42 +0100 |
---|---|---|
committer | Gabriel A. Giovanini <g.giovanini@gridx.de> | 2024-02-14 12:29:28 +0100 |
commit | 59f03c5663d07f87993d682e7fd07b453fc19a11 (patch) | |
tree | 35b0ceb4f141e390c6ee928c50875e006e1de913 /main.c | |
parent | 3967b61dfbee50d2072ddefced877486ce439582 (diff) | |
download | dict-59f03c5663d07f87993d682e7fd07b453fc19a11.tar.gz dict-59f03c5663d07f87993d682e7fd07b453fc19a11.tar.bz2 dict-59f03c5663d07f87993d682e7fd07b453fc19a11.zip |
feat: Add spellfix extension
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -11,14 +11,15 @@ unsigned int count_lines(FILE* file); int load_or_save_db(sqlite3 *pInMemory, const char *zFilename, int isSave); int main() { + + Data *data = new_data(":memory:"); + bootstrap(data); + setlocale(LC_ALL, ""); initscr(); noecho(); cbreak(); - Data *data = new_data(":memory:"); - bootstrap(data); - FILE *f = fopen("dict.txt", "r"); unsigned int lines = count_lines(f); fseek(f, 0, SEEK_SET); |