From f3a537466a853e77dabf13c52c15b96e5467cedb Mon Sep 17 00:00:00 2001 From: 3gg <3gg@shellblade.net> Date: Sat, 7 Jan 2023 11:48:28 -0800 Subject: Add concat_cstr. --- cstring/include/cstring.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'cstring/include') 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 @@ return str; \ } \ \ + static inline STRING STRING##_concat_cstr(STRING a, const char* b) { \ + return STRING##_concat(a, STRING##_make(b)); \ + } \ + \ static inline STRING STRING##_concat_path(STRING a, STRING b) { \ return STRING##_concat(STRING##_concat(a, STRING##_make("/")), b); \ } \ -- cgit v1.2.3