<!-- $XConsortium: TabLstCo.sgm /main/8 1996/09/08 21:08:55 rws $ -->
<!-- (c) Copyright 1995 Digital Equipment Corporation. -->
<!-- (c) Copyright 1995 Hewlett-Packard Company. -->
<!-- (c) Copyright 1995 International Business Machines Corp. -->
<!-- (c) Copyright 1995 Sun Microsystems, Inc. -->
<!-- (c) Copyright 1995 Novell, Inc. -->
<!-- (c) Copyright 1995 FUJITSU LIMITED. -->
<!-- (c) Copyright 1995 Hitachi. -->

<RefEntry Id="CDEMMA.MAN458.rsml.1">
<RefMeta>
<RefEntryTitle>XmTabListCopy</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>XmTabListCopy</Function></RefName>
<RefPurpose>A convenience function that creates a new tab list from an existing list
<IndexTerm>
<Primary>XmTabListCopy</Primary>
</IndexTerm></RefPurpose>
</RefNameDiv>
<!-- @OSF_COPYRIGHT@-->
<!-- COPYRIGHT NOTICE-->
<!-- Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.-->
<!-- ALL RIGHTS RESERVED (MOTIF). See the file named COPY.MOTIF.DOC for-->
<!-- the full copyright text.-->
<!-- -->
<!-- HISTORY-->
<RefSynopsisDiv>
<FuncSynopsis>
<FuncSynopsisInfo>#include &lt;Xm/Xm.h>
</FuncSynopsisInfo>
<FuncDef>XmTabList <Function>XmTabListCopy</Function></FuncDef>
<!--<ParamDef><Replaceable>tablist, offset, count</Replaceable></ParamDef>-->
<ParamDef>XmTabList <Parameter>tablist</Parameter></ParamDef>
<ParamDef>int <Parameter>offset</Parameter></ParamDef>
<ParamDef>Cardinal <Parameter>count</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para><Function>XmTabListCopy</Function> creates a new tab list consisting of a copy of
a portion of the contents of the <Symbol Role="Variable">tablist</Symbol> argument. This
function starts copying at the specified offset value of the tab list
and copies <Symbol Role="Variable">count</Symbol> values.
</Para>
<VariableList>
<VarListEntry>
<Term><Symbol Role="Variable">tablist</Symbol></Term>
<ListItem>
<Para>Specifies a tab list to be copied.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">offset</Symbol></Term>
<ListItem>
<Para>Specifies where to start copying. A value of 0 (zero) indicates begin
at the beginning, a value of 1 indicates to skip the first tab, and so
on. A negative indicates to begin counting backwards from the end.
A value of -1 indicates to start copying from the last tab.
</Para>
</ListItem>
</VarListEntry>
<VarListEntry>
<Term><Symbol Role="Variable">count</Symbol></Term>
<ListItem>
<Para>Specifies the number of tabs to copy. A value of 0 (zero) indicates
to copy all elements from the starting point to the end (beginning if
<Symbol Role="Variable">offset</Symbol> is negative) of the tab list.
</Para>
</ListItem>
</VarListEntry>
</VariableList>
</RefSect1>
<RefSect1>
<Title>RETURN</Title>
<Para>If <Symbol Role="Variable">tablist</Symbol> is NULL, this function returns NULL. Otherwise,
this function returns a newly allocated <StructName Role="typedef">XmTabList</StructName>.
If the function does allocate an <StructName Role="typedef">XmTabList</StructName>, then the
application is responsible for managing the allocated space.
The application can recover the allocated space by calling <Function>XmTabListFree</Function>.
</Para>
</RefSect1>
<RefSect1>
<Title>RELATED</Title>
<Para>&cdeman.XmTabList; and
&cdeman.XmTabListFree;.
</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.09 7/2/95-->
