From 272d8a037822e870ffbdfca4bc1df9d973e4de06 Mon Sep 17 00:00:00 2001 From: Soikk <76824648+Soikk@users.noreply.github.com> Date: Mon, 25 Jul 2022 20:07:22 +0200 Subject: [PATCH] Updated example again --- TODO | 4 ++++ src/main.c | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/TODO b/TODO index e934776..c0f473b 100644 --- a/TODO +++ b/TODO @@ -1,3 +1,7 @@ +TODO Consider refactoring tables to B-Trees (better performance?) + +TODO Add remove* functions, restructure tables functions + TODO Get rid of old functionalities (strnatcmp, BM) ---------------------------------------------------------------- diff --git a/src/main.c b/src/main.c index 0768188..71df5bf 100644 --- a/src/main.c +++ b/src/main.c @@ -9,7 +9,7 @@ int main(){ addFileTag(db, "vaca.png", "naturaleza"); - addFileTags(db, "donald-tromp.jpg", 3, "based", "blonde", "very cool"); + addFileTags(db, "terry-davis.jpg", 3, "holyC", "programmer", "very cool"); addFileTag(db, "vaca.png", "lovely"); addFileTags(db, "vaca.png", 3, "nature", "animal", "very cool"); @@ -20,9 +20,9 @@ int main(){ debugDatabase(db); uint64_t *l, i; - searchFile(db, "donald-tromp.jpg", 0, &l, &i); + searchFile(db, "terry-davis.jpg", 0, &l, &i); - printf("Tags with tag 'donald-tromp.jpg':\n"); + printf("Tags with file 'terry-davis.jpg':\n"); for(uint64_t j = 0; j < i; ++j){ printf("\t%s\n", db->ltags->table[l[j]]); -- 2.39.5