(C) 1998 AROS - The Amiga Research OS


NAME
#include <utility/tagitem.h>
#include <proto/utility.h>

struct TagItem * CloneTagItems (tagList)

LOCATION
In UtilityBase at offset 12

SYNOPSIS
struct TagItem * tagList

FUNCTION
Duplicates a TagList. The input TagList can be NULL, in which case an empty TagList will be returned.

INPUTS
tagList
The TagList that you want to clone

RESULT
A TagList which contains a copy of the TagItems contained in the original list. The list is cloned so that calling FindTagItem() on a tag in the clone will return the same value as that in the original list (assuming the original has not been modified).

EXAMPLE
struct TagItem *tagList, *tagListClone;

\* Set up the original taglist tagList *\

tagListClone = CloneTagItems( tagList );

\* Do what you want with your TagList here *\

FreeTagItems( tagListClone );
SEE ALSO
AllocateTagItems(), FreeTagItems(), RefreshTagItemClones()

NOTES

BUGS

INTERNALS

HISTORY
20.10.1998 hkiel
Amiga Research OS
20.08.1997 digulla
Polish.

Renamed utility_intern.h to intern.h.

03.02.1997 ldp
Changed <proto/*_protos.h> to <proto/*.h>
02.02.1997 iaint
Some bug fixes, math functions and native Amiga support
27.01.1997 ldp
Polish
10.12.1996 aros
Moved #include into first column to allow makedepend to see it.
24.10.1996 aros
Use the official AROS macros over the __AROS versions.
23.10.1996 aros
Formatted

Added parens to all assignments which are used truth expressions

22.10.1996 aros
Some more utility.library functions.