diff options
| author | Anser <rostgans@tutamail.com> | 2026-07-27 21:56:05 +0200 |
|---|---|---|
| committer | Anser <rostgans@tutamail.com> | 2026-07-31 14:27:56 +0200 |
| commit | 784d654db95ac27ab45db53f9258b324125b3cfd (patch) | |
| tree | 6184845bcac6ed2a8cc9e4fd733114ba4db55aed /src/modules/utils/utils.h | |
| parent | b8969bf91a034fe848f77c6e670a5a158438ea6e (diff) | |
utils: added string concatination function
Diffstat (limited to 'src/modules/utils/utils.h')
| -rw-r--r-- | src/modules/utils/utils.h | 7 |
1 files changed, 7 insertions, 0 deletions
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 |
