summaryrefslogtreecommitdiffhomepage
path: root/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-12-08 20:32:10 +0100
committerTyge Løvset <[email protected]>2020-12-08 20:32:10 +0100
commit56dd4e057367689a89a170e255626591cdf5dc85 (patch)
tree883a330826c3596f430c566d3de11117250beb83 /stc
parentbfd7248535ee2bc6c067cb56894966968dc1ee82 (diff)
downloadSTC-modified-56dd4e057367689a89a170e255626591cdf5dc85.tar.gz
STC-modified-56dd4e057367689a89a170e255626591cdf5dc85.zip
Updated api for with clone()
Diffstat (limited to 'stc')
-rw-r--r--stc/cstr.h4
1 files changed, 2 insertions, 2 deletions
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