From c083936d8fa46b5df921dedae6ca15e1192d6612 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 14 Dec 2021 11:20:17 +0100 Subject: cstr_printf() now returns int like printf(). Minor updates in sharedptr.c example. --- docs/cstr_api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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); -- cgit v1.2.3