Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

tt_malloc (3)

Name

tt_malloc - allocate storage on the ToolTalk API allocation stack

Synopsis

#include <Tt/tt_c.h>
caddr_t tt_malloc(size_t s);

Description

tt_malloc(3)                  ToolTalk Functions                  tt_malloc(3)



NAME
       tt_malloc - allocate storage on the ToolTalk API allocation stack

SYNOPSIS
       #include <Tt/tt_c.h>
       caddr_t tt_malloc(size_t s);

DESCRIPTION
       The  tt_malloc() function allocates storage on the ToolTalk API alloca-
       tion stack.

       The s argument is the amount of storage to be allocated in bytes.

RETURN VALUE
       Upon  successful  completion,  the  tt_malloc()  function  returns  the
       address  of the storage in the ToolTalk API allocation stack that is to
       be allocated.  If NULL is returned, no storage is available.

APPLICATION USAGE
       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.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/tooltalk |
       +---------------+------------------+
       |Stability      | Committed        |
       +---------------+------------------+

SEE ALSO
       tt_c(5), tt_free(3).




ToolTalk 1.3                     1 March 1996                     tt_malloc(3)