hpux man page for xtmalloc

Query: xtmalloc

OS: hpux

Section: 1

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

XtMalloc()																XtMalloc()

Name
  XtMalloc - allocate memory.

Synopsis
  char *XtMalloc(size);
	 Cardinalsize;

Inputs
  size	    Specifies the number of bytes of memory to allocate.

Returns
  A pointer to allocated memory.

Description
  XtMalloc()  allocates  and  returns a block of size bytes of memory.	If there is insufficient memory to allocate the new block, XtMalloc()
  terminates by calling XtErrorMsg().

  XtMalloc() makes no guarantee about the contents of the memory when it is allocated.

Usage
  In most cases, you will have to cast the return value of XtMalloc() to an appropriate pointer type.

  XtNew() and XtNewString() provide slightly higher-level approaches to memory allocation.

  Memory allocated with XtMalloc() must be deallocated with XtFree().  The function XtMalloc() is implemented by the Toolkit independently of
  the particular environment, so programs ported to a system not supporting malloc will still work.

See Also
  XtCalloc(1), XtErrorMsg(1), XtFree(1), XtNew(1), XtNewString(1), XtRealloc(1).

Xt - Memory Allocation															XtMalloc()
Related Man Pages
xtfree(3xt) - xfree86
xtmalloc(3xt) - xfree86
xtcalloc(3) - x11r4
xtmalloc(3) - x11r4
xtrealloc(3) - x11r4
Similar Topics in the Unix Linux Community
Is UNIX an open source OS ?
How to extract every repeated string between two specific string?
Sequence extraction
awk - Multi-line data to be stored in variable