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>
This commit is contained in:
Leah Rowe
2026-03-26 01:09:10 +00:00
parent b84c929e64
commit 58ce1d74c0
2 changed files with 53 additions and 0 deletions
+2
View File
@@ -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,