summaryrefslogtreecommitdiff
path: root/tbl_qcmd.c
diff options
context:
space:
mode:
Diffstat (limited to 'tbl_qcmd.c')
-rw-r--r--tbl_qcmd.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/tbl_qcmd.c b/tbl_qcmd.c
index 3d511b4..dea78e0 100644
--- a/tbl_qcmd.c
+++ b/tbl_qcmd.c
@@ -273,35 +273,3 @@ int tbl_cmd_param_set(tble_cmd_param *cmd_param, tble_qcmd *cmd)
return 0;
}
-
-
-char *alloc_new_str_s(char *str, size_t size)
-{
- char *ret = NULL;
-
- if (str == NULL)
- {
- return NULL;
- }
-
- //1MB is enought
- if (size > (1024*1024))
- {
- return NULL;
- }
-
- ret = malloc(size);
- if (ret == NULL)
- {
- return NULL;
- }
-
- memcpy(ret, str, size);
-
- return ret;
-}
-
-char *alloc_new_str(char *str)
-{
- return alloc_new_str_s(str, strlen(str));
-} \ No newline at end of file