diff options
| author | Tyge Løvset <[email protected]> | 2021-12-14 11:20:17 +0100 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2021-12-14 11:20:17 +0100 |
| commit | c083936d8fa46b5df921dedae6ca15e1192d6612 (patch) | |
| tree | a8f2b0e78030e3c3db87487acb85ae8c75733a38 /docs/cstr_api.md | |
| parent | 17280f8177736c35b34e41556a307ca51e68d1e2 (diff) | |
| download | STC-modified-c083936d8fa46b5df921dedae6ca15e1192d6612.tar.gz STC-modified-c083936d8fa46b5df921dedae6ca15e1192d6612.zip | |
cstr_printf() now returns int like printf(). Minor updates in sharedptr.c example.
Diffstat (limited to 'docs/cstr_api.md')
| -rw-r--r-- | docs/cstr_api.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/cstr_api.md b/docs/cstr_api.md index 0004eeae..e54b3a4c 100644 --- a/docs/cstr_api.md +++ b/docs/cstr_api.md @@ -41,8 +41,8 @@ void cstr_clear(cstr* self); cstr* cstr_assign(cstr* self, const char* str); cstr* cstr_assign_n(cstr* self, const char* str, size_t n); // assign n first chars of str -cstr* cstr_printf(cstr* self, const char* fmt, ...); // printf() formatting cstr* cstr_copy(cstr* self, cstr s); // cstr_take(self, cstr_clone(s)) +int cstr_printf(cstr* self, const char* fmt, ...); // printf() formatting cstr* cstr_append(cstr* self, const char* str); cstr* cstr_append_s(cstr* self, cstr s); |
