From 28578b192d0828a9820983b5624b9bcc3577cd18 Mon Sep 17 00:00:00 2001 From: Soikk Date: Sat, 23 Jul 2022 01:46:24 +0200 Subject: Improved the database storage system. Added persistency. --- include/str.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'include/str.h') diff --git a/include/str.h b/include/str.h index ffda145..de119f8 100644 --- a/include/str.h +++ b/include/str.h @@ -4,11 +4,15 @@ #include "db.h" -uint16_t len(const char *s); +uint32_t len(const char *s); bool sameStr(const char *s1, const char *s2); +char *normalizeStr(const char *str, uint32_t *ln); + +char *normalizeStrLimit(const char *str, uint32_t *l, uint32_t limit); + ssize_t strInTags(const char *tags, int n, const char *ndl, int m, char sep); -#endif \ No newline at end of file +#endif -- cgit v1.2.3