calloc man page on DigitalUNIX

Man page or keyword search:  
man Server   12896 pages
apropos Keyword Search (all sections)
Output format
DigitalUNIX logo
[printable version]

Digital UNIX Diffs - malloc(5)			Digital UNIX Diffs - malloc(5)

       malloc, alloca, realloc, calloc, valloc - Provides a memory allocator

       Standard	 C  Library (libc.a) Berkeley Compatibility Library (libbsd.a)
       Pthreads library (libpthreads.a)

       #include <malloc.h>

       void *malloc ( size_t size );

       #include <alloca.h> char *alloca ( int size );

       void *realloc ( void *pointer,
		       size_t size );

       void *calloc ( size_t num_of_elts,
		      size_t elt_size );

       void *valloc ( size_t size );	  /* libc.a version	     */
					  /* returns pointer to void */

       char *valloc ( size_t size );	  /* libbsd.a version	     */
					  /* returns pointer to char */

       size	     Specifies a number of bytes of memory.

       pointer	     Points to the block of memory that was returned by the
		     malloc() or calloc() function.

       num_of_elts   Specifies the number of elements in the array.

       elt_size	     Specifies the size of each element in the array.

       alpha-32bits(5): 32 vs 64 bit Differences

       Memory allocation library  functions  such  as  malloc()	 guarantee  to
       return  data  aligned  to  the maximum alignment of any object.	In the
       64-bit Alpha AXP environment, malloc() returns a pointer to memory that
       is at least quadword aligned.

       If  the	size parameter is specified to be 0 (zero), the malloc() func‐
       tion returns a null pointer.

       Functions: malloc(3), alloca(3), realloc(3), calloc(3), valloc(3)


       delim off

						Digital UNIX Diffs - malloc(5)

List of man pages available for DigitalUNIX

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