home *** CD-ROM | disk | FTP | other *** search
/ Stars of Shareware: Programmierung / SOURCE.mdf / programm / msdos / c / dmkit / flat / support.h < prev    next >
Encoding:
Text File  |  1993-12-31  |  1.3 KB  |  25 lines

  1. //** This file contains some minimal basic support routines, written in C
  2. //** to provide low DOS memory access and such.
  3. /*                                                                                                                                                     */
  4. /*        Written by John W. Ratcliff (c) 1994                                                                     */
  5. /*             Compuserve: 70253,3237                                                                                          */
  6. /*             Genie: J.RATCLIFF3                                                                                                  */
  7. /*             BBS: 1-314-939-0200                                                                                                 */
  8. /*             Addresss:                                                                                                                     */
  9. /*                     747 Napa Lane                                                                                                     */
  10. /*                     St. Charles, MO 63304                                                                                     */
  11. /*                                                                                                                                                     */
  12. int   keystat(void);
  13. int     getkey(void);
  14. void    * fload(char *fname,long int *size);
  15. void    * floadlow(char *fname,long int *size);
  16. void    * memalloc(long int size); // Allocate memory.
  17. void    memfree(void *mem); // Free memory.
  18. void    * realalloc(long int size); // Allocate memory in 1mb address space.
  19. // This is a standard 'DOS' memory allocate, thus the returned address is not
  20. // only always in the first 1mb of address space but is also ALWAYS going to
  21. // be paragraph aligned.    This is significant for the DIGPAK amd MIDPAK loading
  22. // mechanism, and other dynamic loading systems because a .COM module must
  23. // be paragraph aligned.
  24. void    realfree(void *mem); // Free memory in first 1mb of address space.
  25.