XtCalloc 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]

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 insuf‐
  ficient 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 support‐
  ing calloc will still work.

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

Xt - Memory Allocation						    XtCalloc()
[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