diff options
| author | Ian Lilley <ianlilleyt@gmail.com> | 2022-08-07 17:52:29 -0400 |
|---|---|---|
| committer | Ian Lilley <ianlilleyt@gmail.com> | 2022-08-07 17:52:29 -0400 |
| commit | c1c8ceafc243389d8eb94feca99de1239da32408 (patch) | |
| tree | a3236600cbc3298b891044bb9ec5538d57c665ac /src/string.cpp | |
| parent | 7b539e3025907ab5b40762f90ca4f613cee7eab5 (diff) | |
find windows sdk bin path for rc.exe
Diffstat (limited to 'src/string.cpp')
| -rw-r--r-- | src/string.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/string.cpp b/src/string.cpp index 44eccd2d2..bc55e370c 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -324,6 +324,16 @@ String concatenate3_strings(gbAllocator a, String const &x, String const &y, Str data[len] = 0; return make_string(data, len); } +String concatenate4_strings(gbAllocator a, String const &x, String const &y, String const &z, String const &w) { + isize len = x.len+y.len+z.len+w.len; + u8 *data = gb_alloc_array(a, u8, len+1); + gb_memmove(data, x.text, x.len); + gb_memmove(data+x.len, y.text, y.len); + gb_memmove(data+x.len+y.len, z.text, z.len); + gb_memmove(data+x.len+y.len+z.len, w.text, w.len); + data[len] = 0; + return make_string(data, len); +} String string_join_and_quote(gbAllocator a, Array<String> strings) { if (!strings.count) { |