home *** CD-ROM | disk | FTP | other *** search
/ Power Programming / powerprogramming1994.iso / progtool / microcrn / issue_40.arc / C-REVIEW.ARC / ALLOCMEM.C next >
C/C++ Source or Header  |  1987-09-23  |  367b  |  21 lines

  1. /*
  2.      Program: AllocMem (Allocate Memory)
  3.      Version: 1.00
  4.      Date:    September 11, 1987
  5.  
  6.      Tests the memory allocation/deallocation routines of a C compiler.
  7. */
  8. char *malloc();
  9.  
  10. main()
  11.      {
  12.      char *x;
  13.      unsigned i;
  14.  
  15.      for (i = 0; i < 50000; ++i)
  16.           {
  17.           x = malloc(10000);
  18.           free(x);
  19.           }
  20.      }
  21.