diff options
| author | Tyge Løvset <[email protected]> | 2020-08-30 19:01:02 +0200 |
|---|---|---|
| committer | Tyge Løvset <[email protected]> | 2020-08-30 19:01:02 +0200 |
| commit | fb87f58ad96190a258dccff6f2c5faab031010e0 (patch) | |
| tree | 2e5e00b077b496b2a491d9322b703370266591a3 /stc | |
| parent | e0b2e9126d74ce03ddb1054be709126723c7e7a5 (diff) | |
| download | STC-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.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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]); \
|
