From 784d654db95ac27ab45db53f9258b324125b3cfd Mon Sep 17 00:00:00 2001 From: Anser Date: Mon, 27 Jul 2026 21:56:05 +0200 Subject: utils: added string concatination function --- src/modules/utils/utils.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/modules/utils/utils.h') diff --git a/src/modules/utils/utils.h b/src/modules/utils/utils.h index 1dfbb51..7a0ab02 100644 --- a/src/modules/utils/utils.h +++ b/src/modules/utils/utils.h @@ -11,4 +11,11 @@ */ char *string_format(char* string); +// function: char *concat(const char *str1, const char *str2) +// input two char pointer +// return: pointer to string +// on-error: returns NULL +// misc: caller needs to free the memory +char *concat(const char *str1, const char *str2); + #endif -- cgit v1.2.3