malloc man page on 4.4BSD

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

MALLOC(3)		 BSD Library Functions Manual		     MALLOC(3)

NAME
     malloc, — general memory allocation function

SYNOPSIS
     #include <stdlib.h>

     void *
     malloc(size_t size);

DESCRIPTION
     The malloc() function allocates uninitialized space for an object whose
     size is specified by size.	 The malloc() function maintains multiple
     lists of free blocks according to size, allocating space from the appro‐
     priate list.

     The allocated space is suitably aligned (after possible pointer coercion)
     for storage of any type of object. If the space is of pagesize or larger,
     the memory returned will be page-aligned.

RETURN VALUES
     The malloc() function returns a pointer to the allocated space if suc‐
     cessful; otherwise a null pointer is returned.

SEE ALSO
     brk(2), pagesize(2), free(3), calloc(3), alloca(3), realloc(3), memory(3)

STANDARDS
     The malloc() function conforms to ANSI X3.159-1989 (“ANSI C89”).

BUGS
     The current implementation of malloc does not always fail gracefully when
     system memory limits are approached.  It may fail to allocate memory when
     larger free blocks could be broken up, or when limits are exceeded
     because the size is rounded up.  It is optimized for sizes that are pow‐
     ers of two.

4th Berkeley Distribution	 June 4, 1993	     4th Berkeley Distribution
[top]

List of man pages available for 4.4BSD

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