diff options
| author | Leah Rowe <leah@libreboot.org> | 2026-03-25 07:27:13 +0000 |
|---|---|---|
| committer | Leah Rowe <leah@libreboot.org> | 2026-03-25 07:51:51 +0000 |
| commit | e1ff02f323b747d49a6c20c5d3d89702fd1677ba (patch) | |
| tree | 8cd595cb20f614057b78b5bacbe168fafccc758f /util/libreboot-utils/include/common.h | |
| parent | 5f93b7faec18a3eddcb3af3302bf0efa268de221 (diff) | |
util/libreboot-utils: added more string functions
also reset pointer values
because i can
Signed-off-by: Leah Rowe <leah@libreboot.org>
Diffstat (limited to 'util/libreboot-utils/include/common.h')
| -rw-r--r-- | util/libreboot-utils/include/common.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/util/libreboot-utils/include/common.h b/util/libreboot-utils/include/common.h index da086425..97bbdf0c 100644 --- a/util/libreboot-utils/include/common.h +++ b/util/libreboot-utils/include/common.h @@ -384,7 +384,13 @@ int slen(const char *scmp, size_t maxlen, size_t *rval); int scmp(const char *a, const char *b, size_t maxlen, int *rval); - +int sdup(const char *s, + size_t n, char **dest); +int scat(const char *s1, const char *s2, + size_t n, char **dest); +int dcat(const char *s, size_t n, + size_t off, char **dest1, + char **dest2); /* numerical functions */ |
