diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-26 01:09:10 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-26 06:59:42 +0000 |
| commit | 58ce1d74c0915f9a5acf6336f5707663d2bbb2da (patch) | |
| tree | ef8dc1f4a9549cda04c0079c8802d0ceeeb4ef63 /util/libreboot-utils/include | |
| parent | b84c929e64f2398e02dc4ae9575d7b616fb18528 (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.h | 2 |
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, |
