diff options
author | 3gg <3gg@shellblade.net> | 2023-01-07 11:48:28 -0800 |
---|---|---|
committer | 3gg <3gg@shellblade.net> | 2023-01-07 11:48:28 -0800 |
commit | f3a537466a853e77dabf13c52c15b96e5467cedb (patch) | |
tree | 106dd0c0ce918011b49b7f5c186e4dfb2d2d03b3 /cstring/include/cstring.h | |
parent | f223fb0b0b946d21e469e7ff5e3dcfe2cdd42115 (diff) |
Add concat_cstr.
Diffstat (limited to 'cstring/include/cstring.h')
-rw-r--r-- | cstring/include/cstring.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cstring/include/cstring.h b/cstring/include/cstring.h index c8362ea..b10514f 100644 --- a/cstring/include/cstring.h +++ b/cstring/include/cstring.h | |||
@@ -73,6 +73,10 @@ | |||
73 | return str; \ | 73 | return str; \ |
74 | } \ | 74 | } \ |
75 | \ | 75 | \ |
76 | static inline STRING STRING##_concat_cstr(STRING a, const char* b) { \ | ||
77 | return STRING##_concat(a, STRING##_make(b)); \ | ||
78 | } \ | ||
79 | \ | ||
76 | static inline STRING STRING##_concat_path(STRING a, STRING b) { \ | 80 | static inline STRING STRING##_concat_path(STRING a, STRING b) { \ |
77 | return STRING##_concat(STRING##_concat(a, STRING##_make("/")), b); \ | 81 | return STRING##_concat(STRING##_concat(a, STRING##_make("/")), b); \ |
78 | } \ | 82 | } \ |