|
|
Copyright 1991 David Jurgens |
MSC: void _based(void) *_bmalloc( _segment seg, size_t size )
MSC: void far *_fmalloc( size_t size )
MSC: void near *_nmalloc( size_t size )
- prototype in malloc.h
- size = number of bytes to allocate
- seg = base segment value
- malloc() maps to _fmalloc or _nmalloc based on memory model
- _fmalloc allocates memory outside the default data segment if
possible
- returns pointer to allocated block or NULL on error; _bmalloc()
function returns _NULLOFF on error
- these functions will allocate a zero length block
|
|
Esc or Alt-X to exit |
_bmalloc |
Home/PgUp/PgDn/End ←↑↓→ |