PWB Extensions Help (ext.hlp) (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
Falloc, Fdalloc
                                             Up Contents Index Back
─────PWB Extensions─────────────────────────────────────────────────────────
 
  Syntax:  char far *Falloc( long size );
           void Fdalloc( char far *buffer );
 
  Returns: Falloc returns a pointer to the buffer allocated, or NULL if
           no memory is available.
 
  See:     fpbToVm, VMAlloc, VMFree, VMTofpb, VMSize
 
     Falloc and Fdalloc manage memory for use in PWB extensions. Use
     them in place of malloc, free, and other C heap functions.
 
     Falloc allocates memory and returns a pointer to the memory. The
     size parameter specifies the number of bytes allocated.
 
     Fdalloc frees memory previously allocated by Falloc. The buffer
     parameter is a pointer to the memory to be freed.
                                    -♦-