diff options
author | Tavian Barnes <tavianator@gmail.com> | 2011-05-09 10:44:38 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2011-05-09 10:44:38 -0600 |
commit | c151fc1f157062ec273594505644f7794a047100 (patch) | |
tree | 814cb87e5582be274e264f357359f61317aa5de2 /libdimension/dimension | |
parent | 176a720808ada729661f8dea5e41045050f0e701 (diff) | |
download | dimension-c151fc1f157062ec273594505644f7794a047100.tar.xz |
Add dmnsn_copy_list() function.
Diffstat (limited to 'libdimension/dimension')
-rw-r--r-- | libdimension/dimension/list.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libdimension/dimension/list.h b/libdimension/dimension/list.h index e8bbfd6..70c944c 100644 --- a/libdimension/dimension/list.h +++ b/libdimension/dimension/list.h @@ -104,11 +104,18 @@ dmnsn_new_list(size_t obj_size) void dmnsn_delete_list(dmnsn_list *list); /** + * Copy a list. + * @param[in] list The list to copy. + * @return A list containing the same elements as \p list. + */ +dmnsn_list *dmnsn_copy_list(const dmnsn_list *list); + +/** * Construct a list from an array. * @param[in] array The array to copy. * @return A list with the same contents as \p array. */ -dmnsn_list *dmnsn_list_from_array(const dmnsn_array *array); +dmnsn_list *dmnsn_list_from_array(const dmnsn_array *array); /** * Construct an array from a list. |