summaryrefslogtreecommitdiffhomepage
path: root/stc
diff options
context:
space:
mode:
authorTyge Løvset <[email protected]>2020-08-30 19:01:02 +0200
committerTyge Løvset <[email protected]>2020-08-30 19:01:02 +0200
commitfb87f58ad96190a258dccff6f2c5faab031010e0 (patch)
tree2e5e00b077b496b2a491d9322b703370266591a3 /stc
parente0b2e9126d74ce03ddb1054be709126723c7e7a5 (diff)
downloadSTC-modified-fb87f58ad96190a258dccff6f2c5faab031010e0.tar.gz
STC-modified-fb87f58ad96190a258dccff6f2c5faab031010e0.zip
Renamed cstr_destr to cstr_mdestroy(). Added a few more examples.
Diffstat (limited to 'stc')
-rw-r--r--stc/cstr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/stc/cstr.h b/stc/cstr.h
index c695a1ba..6688f683 100644
--- a/stc/cstr.h
+++ b/stc/cstr.h
@@ -47,7 +47,7 @@ static cstr_t cstr_init = {(char* ) &_cstr_nullrep[2]};
#define cstr_back(s) (s).str[_cstr_size(s) - 1] /* may have side effect */
#define cstr_npos ((size_t) (-1))
/* destroy multiple strings: */
-#define cstr_destr(...) do { \
+#define cstr_mdestroy(...) do { \
cstr_t *__objs[] = {__VA_ARGS__}; \
for (size_t i=0; i<sizeof(__objs)/sizeof(__objs[0]); ++i) \
cstr_destroy(__objs[i]); \