summaryrefslogtreecommitdiff
path: root/util/libreboot-utils/include
diff options
context:
space:
mode:
authorLeah Rowe <leah@libreboot.org>2026-03-26 01:09:10 +0000
committerLeah Rowe <leah@libreboot.org>2026-03-26 01:12:50 +0000
commitf45a349da414322f5753ffbcd94b30c1f44cbc2b (patch)
tree7489143a4cd29544975ee75b3d6accc1a649ceb6 /util/libreboot-utils/include
parent7cd588a445d70d8cc7ed0cbae36be001ee56cae1 (diff)
libreboot-utils: new function, scatn()
concatenate an arbitrary number of strings, pointed to by char ** i'll use this and the next function, dcatn, in an upcoming feature planned for mkhtemp. Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include')
-rw-r--r--util/libreboot-utils/include/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h
index ebad01bf..dac87fac 100644
--- a/util/libreboot-utils/include/common.h
+++ b/util/libreboot-utils/include/common.h
@@ -375,6 +375,8 @@ int scmp(const char *a, const char *b,
size_t maxlen, int *rval);
int sdup(const char *s,
size_t n, char **dest);
+int scatn(ssize_t sc, const char **sv,
+ size_t max, char **rval);
int scat(const char *s1, const char *s2,
size_t n, char **dest);
int dcat(const char *s, size_t n,