MallocIntP

[ XITE Reference Manual | XITE home ]

Name

MallocFloatP, MallocIntP - Allocate memory for a number and return pointer

Syntax

 #include <xite/mallocp.h>

 int *MallocIntP( int i );
 int *MallocFloatP( int i );

Description

Allocates memory for an integer or a float and returns a pointer to it. Can be used e.g. to supply the "closure" argument to the XtAddCallback() procedure.

Diagnostics

As for malloc(3).

Return value

Pointer to the allocated number or NULL if allocation failed.

Author

Svein Bøe

Id

$Id: mallocp.c,v 1.4 1997/01/06 10:55:59 svein Exp $