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

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

_go32_dpmi_resize_dos_memory

Syntax

 
#include <dpmi.h>

int _go32_dpmi_resize_dos_memory(_go32_dpmi_seginfo *info);

Description

See section DPMI Overview.

The info structure is the same one used to allocate the memory. Fill in a new value for size and call this function. If there is not enough memory to satisfy the request, the largest size is filled in to the size field, the memory is not resized, and this function fails.

Return Value

Zero on success, nonzero on failure.

Portability

ANSI/ISO C No
POSIX No

Example

 
_go32_dpmi_seginfo info;
info.size = 10;
_go32_dpmi_allocate_dos_memory(&info);
info.size = 20;
_go32_dpmi_resize_dos_memory(&info);
_go32_dpmi_free_dos_memory(&info);


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004