Add dstr_find function

This commit is contained in:
2023-06-24 03:40:04 +01:00
parent 5f926f060e
commit 7a326421b8
2 changed files with 32 additions and 0 deletions

View File

@@ -14,6 +14,7 @@ void dstr_append(dstr_t **dst, char c);
void dstr_resize(dstr_t **str);
void dstr_clear(dstr_t *str);
void dstr_print(const dstr_t *str);
i64 dstr_find(const dstr_t *str, const char *substr);
u64 dstr_length(const dstr_t *str);
u64 dstr_capacity(const dstr_t *str);
const char *dstr_to_cstr(const dstr_t *str);