hpux man page for xtcalloc

Query: xtcalloc

OS: hpux

Section: 1

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

XtCalloc()																XtCalloc()

Name
  XtCalloc - allocate memory for an array and initialize its bytes to zero.

Synopsis
  char *XtCalloc(num, size);
	 Cardinal num;
	 Cardinal size;

Inputs
  num	    Specifies the number of array elements to allocate.

  size	    Specifies the size of an array element in bytes.

Returns
  A pointer to allocated memory.

Description
  XtCalloc()  allocates  memory  for  an  array  of num elements each of size bytes and initializes each allocated byte to zero.  If there is
  insufficient memory, XtCalloc() terminates by calling XtErrorMsg().

Usage
  Note that in most cases, you will have to cast the return value of XtCalloc() to the type appropriate for the array elements you are	allo-
  cating.

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

  The  function XtCalloc() is implemented by the Toolkit independently of the particular environment, so programs ported to a system not sup-
  porting calloc will still work.

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

Xt - Memory Allocation															XtCalloc()
Related Man Pages
xtnew(3) - x11r4
xtcalloc(3) - suse
xtmalloc(3) - suse
xtnewstring(3) - suse
xtcalloc(3xt) - osf1
Similar Topics in the Unix Linux Community
How to list file size on HPUX?
SAN Migration question
Hpux 11iV3 administration document
awk - Multi-line data to be stored in variable
Seeking Alternative for diff in hp