delorie.com/djgpp/doc/libc/libc_555.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

mallocmap

Syntax

 
#include <stdlib.h>

void mallocmap(void);

Description

This function prints a map of the heap storage to standard output. For each block, its address and size are printed, as well as an indication whether it is free or in use. If the slop (a special free block cached for performance reasons) and the small blocks are available, they are printed as well (these two are variants of free blocks). Blocks in use will only be printed if the diagnostic level was set to a non-zero value by a call to malloc_debug (see section malloc_debug), since otherwise the allocated blocks are not recorded by malloc.

Return Value

None.

Portability

ANSI/ISO C No
POSIX No (see note 1)

Notes:

  1. This function is available on many Unix systems.


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004