From 56dd4e057367689a89a170e255626591cdf5dc85 Mon Sep 17 00:00:00 2001 From: Tyge Løvset Date: Tue, 8 Dec 2020 20:32:10 +0100 Subject: Updated api for with clone() --- stc/cstr.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'stc') diff --git a/stc/cstr.h b/stc/cstr.h index cdf4f044..71853621 100644 --- a/stc/cstr.h +++ b/stc/cstr.h @@ -156,9 +156,9 @@ STC_INLINE cstr_t* cstr_append(cstr_t* self, const char* str) { return cstr_append_n(self, str, strlen(str)); } -STC_INLINE cstr_t* +STC_INLINE void cstr_push_back(cstr_t* self, char value) { - return cstr_append_n(self, &value, 1); + cstr_append_n(self, &value, 1); } STC_INLINE void -- cgit v1.2.3