diff options
| author | Soikk | 2022-07-23 01:46:24 +0200 |
|---|---|---|
| committer | Soikk | 2022-07-23 01:46:24 +0200 |
| commit | 28578b192d0828a9820983b5624b9bcc3577cd18 (patch) | |
| tree | 2f30b1730f30a7eeee80995ee3984c10f5bdc2ff /include/str.h | |
| parent | 377dc104be127291ede5b32640c23eea0ba6791a (diff) | |
| download | soikk-DB-28578b192d0828a9820983b5624b9bcc3577cd18.tar.xz soikk-DB-28578b192d0828a9820983b5624b9bcc3577cd18.tar.zst | |
Improved the database storage system. Added persistency.
Diffstat (limited to 'include/str.h')
| -rw-r--r-- | include/str.h | 8 |
1 files changed, 6 insertions, 2 deletions
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 |
