diff options
Diffstat (limited to 'src/http_decoder_utils.c')
| -rw-r--r-- | src/http_decoder_utils.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/src/http_decoder_utils.c b/src/http_decoder_utils.c deleted file mode 100644 index a5dfbe1..0000000 --- a/src/http_decoder_utils.c +++ /dev/null @@ -1,25 +0,0 @@ -/* -********************************************************************************************** -* File: http_decoder_utils.c -* Description: -* Authors: LuWenPeng <[email protected]> -* Date: 2022-10-31 -* Copyright: (c) Since 2022 Geedge Networks, Ltd. All rights reserved. -*********************************************************************************************** -*/ - -#include <string.h> - -#include "stellar/utils.h" - -char *safe_dup(const char *str, size_t len) -{ - if (str == NULL || len == 0) { - return NULL; - } - - char *dup = CALLOC(char, len + 1); - memcpy(dup, str, len); - - return dup; -}
\ No newline at end of file |
