From 6f47796dc0761fac359ec59ce26c7af5154e538d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Wed, 4 Mar 2020 00:28:04 +0100 Subject: Add a deep copy function for the str_table_t helper Signed-off-by: David Oberhollenzer --- include/str_table.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/str_table.h b/include/str_table.h index 61f8aa5..a843e62 100644 --- a/include/str_table.h +++ b/include/str_table.h @@ -33,6 +33,8 @@ SQFS_INTERNAL int str_table_init(str_table_t *table, size_t size); SQFS_INTERNAL void str_table_cleanup(str_table_t *table); +SQFS_INTERNAL int str_table_copy(str_table_t *dst, const str_table_t *src); + /* Resolve a string to an incremental, unique ID. */ SQFS_INTERNAL int str_table_get_index(str_table_t *table, const char *str, size_t *idx); -- cgit v1.2.3