XtMalloc man page on HP-UX

Man page or keyword search:  
man Server   10987 pages
apropos Keyword Search (all sections)
Output format
HP-UX logo
[printable version]

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() ter‐
  minates 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 support‐
  ing malloc will still work.

See Also
  XtCalloc(1), XtErrorMsg(1), XtFree(1), XtNew(1), XtNewString(1), XtRe‐
  alloc(1).

Xt - Memory Allocation						    XtMalloc()
[top]

List of man pages available for HP-UX

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net