diff options
| author | Tyge Løvset <[email protected]> | 2021-03-03 11:28:58 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-03-03 11:37:19 +0100 |
| commit | 57f479e4099236a0fe2b7bbd95f0771f309aff2b (patch) | |
| tree | 39d42fcdb75c55eaac9972c2640a78d2d916ef1d /docs/cvec_api.md | |
| parent | 30cf6e3e080725539f7c09890a151d13eece7911 (diff) | |
| download | STC-modified-57f479e4099236a0fe2b7bbd95f0771f309aff2b.tar.gz STC-modified-57f479e4099236a0fe2b7bbd95f0771f309aff2b.zip | |
Removed cstr_t from docs (use cstr).
Diffstat (limited to 'docs/cvec_api.md')
| -rw-r--r-- | docs/cvec_api.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/docs/cvec_api.md b/docs/cvec_api.md index bf287f02..5b6cd61a 100644 --- a/docs/cvec_api.md +++ b/docs/cvec_api.md @@ -25,7 +25,7 @@ be replaced by `i` in all of the following documentation. `using_cvec_str()` is a shorthand for: ``` -using_cvec(str, cstr_t, cstr_compare_raw, cstr_del, cstr_from, cstr_c_str, const char*) +using_cvec(str, cstr, cstr_compare_raw, cstr_del, cstr_from, cstr_c_str, const char*) ``` ## Header file @@ -155,9 +155,9 @@ int main() { cvec_str_emplace_back(&names, "Joe"); cstr_assign(&names.data[1], "Jake"); // replace "Joe". - cstr_t tmp = cstr_from_fmt("%d elements so far", cvec_str_size(names)); + cstr tmp = cstr_from_fmt("%d elements so far", cvec_str_size(names)); - // emplace_back() will not compile if adding a new cstr_t type. Use push_back(): + // emplace_back() will not compile if adding a new cstr type. Use push_back(): cvec_str_push_back(&names, tmp); // tmp is moved to names, do not del() it. printf("%s\n", names.data[1].str); // Access the second element |
