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

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

__djgpp_memory_handle_list

Syntax

 
#include <crt0.h>

extern __djgpp_sbrk_handle __djgpp_memory_handle_list[256];

Description

This array contains a list of memory handles and program relative offsets allocated by sbrk() in addition to the handle allocated by the stub. These values are normally not needed unless you are doing low-level DPMI page protection or memory mapping.

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