diff options
| author | Tyge Løvset <[email protected]> | 2021-05-21 21:54:27 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-05-21 21:54:27 +0200 |
| commit | 47cd9cad6672f68c892ed0e38bf1b4ced1c8a692 (patch) | |
| tree | e3144be7ee7769a38f5fca6e30879755f9e94921 /docs/cstr_api.md | |
| parent | 797635fc13bc91a5e55255da7fbdd5395a387ce0 (diff) | |
| download | STC-modified-47cd9cad6672f68c892ed0e38bf1b4ced1c8a692.tar.gz STC-modified-47cd9cad6672f68c892ed0e38bf1b4ced1c8a692.zip | |
Added substr() and cleanup of trimmed() API.
Diffstat (limited to 'docs/cstr_api.md')
| -rw-r--r-- | docs/cstr_api.md | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md index 7bebbbfb..a838c7d9 100644 --- a/docs/cstr_api.md +++ b/docs/cstr_api.md @@ -23,6 +23,7 @@ cstr cstr_with_capacity(size_t cap); cstr cstr_with_size(size_t len, char fill); // repeat fill len times cstr cstr_from_fmt(const char* fmt, ...); // printf() formatting cstr cstr_clone(cstr s); +cstr cstr_substr(cstr s, size_t pos, size_t n); cstr* cstr_take(cstr* self, cstr s); // take the constructed or moved string cstr cstr_move(cstr* self); // move string to caller, leave empty string |
