Files
cdesktop/cde/doc/C/guides/man/m3_tt/malloc.sgm

68 lines
2.4 KiB
Plaintext

<!-- $XConsortium: malloc.sgm /main/5 1996/08/30 12:48:33 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. -->
<![ %CDE.C.CDE; [<RefEntry Id="CDEMX.XCDI.MAN85.rsml.1">]]>
<![ %CDE.C.XO; [<RefEntry Id="XCDI.MAN85.rsml.1">]]>
<RefMeta>
<RefEntryTitle>tt_malloc</RefEntryTitle>
<ManVolNum>library call</ManVolNum>
</RefMeta>
<RefNameDiv>
<RefName><Function>tt_malloc</Function></RefName>
<RefPurpose>allocate storage on the ToolTalk API allocation stack
</RefPurpose>
</RefNameDiv>
<!-- $XConsortium: malloc.sgm /main/5 1996/08/30 12:48:33 rws $-->
<!-- CDE Common Source Format, Version 1.0.0-->
<!-- (c) Copyright 1993, 1994, 1995 Hewlett-Packard Company-->
<!-- (c) Copyright 1993, 1994, 1995 International Business Machines Corp.-->
<!-- (c) Copyright 1993, 1994, 1995 Sun Microsystems, Inc.-->
<!-- (c) Copyright 1993, 1994, 1995 Novell, Inc.-->
<RefSynopsisDiv>
<FuncSynopsis Remap="ANSI">
<FuncSynopsisInfo>#include &lt;Tt/tt_c.h>
</FuncSynopsisInfo>
<FuncDef>caddr_t <Function>tt_malloc</Function></FuncDef>
<ParamDef>size_t <Parameter>s</Parameter></ParamDef>
</FuncSynopsis>
</RefSynopsisDiv>
<RefSect1>
<Title>DESCRIPTION</Title>
<Para>The
<Function>tt_malloc</Function> function
allocates storage on the ToolTalk API allocation stack.
</Para>
<Para>The
<Symbol Role="Variable">s</Symbol> argument is the amount of storage to be allocated in bytes.
</Para>
</RefSect1>
<RefSect1>
<Title>RETURN VALUE</Title>
<Para>Upon successful completion, the
<Function>tt_malloc</Function> function returns
the address of the storage in the ToolTalk API
allocation stack that is to be allocated.
If
<SystemItem Class="Constant">NULL</SystemItem> is returned, no storage is available.
</Para>
</RefSect1>
<RefSect1>
<Title>APPLICATION USAGE</Title>
<Para>This function allows the application-provided callback routines to take
advantage of the allocation stack; for example, a query filter function can
allocate storage to accumulate a result.
</Para>
</RefSect1>
<RefSect1>
<Title>SEE ALSO</Title>
<Para>&cdeman.Tt.tt.c.h;, &cdeman.tt.free;.</Para>
</RefSect1>
</RefEntry>
<!--fickle 1.12 mancsf-to-docbook 1.2 08/07/95 23:18:47-->