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

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

__djgpp_memory_handle_size

Syntax

 
#include <crt0.h>

extern unsigned __djgpp_memory_handle_size[256];

Description

This array contains a list of the sizes of the memory regions allocated by sbrk() in addition to the memory region allocated by the stub. These values are normally not needed unless you are dumping the memory blocks.

Portability

ANSI/ISO C No
POSIX No

Example

 
#include <crt0.h>

  for(i=0; i<256; i++) {
    int h, a, s;
    h = __djgpp_memory_handle_list[i].handle;
    a = __djgpp_memory_handle_list[i].address;
    s = __djgpp_memory_handle_size[i];    
    if(a == 0 && i != 0) break;
    printf("handle[%d]=0x%x base=0x%x size=0x%x\n",i,h,a,s);
  }


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004