#include <os2.h>
#include <stdio.h>

#define Run int main

#define MAX_POINTERS 25

Run ()
{
  PVOID Pointers[MAX_POINTERS] = {0};

  for (INT Cntr = 0; Cntr < MAX_POINTERS; Cntr ++)
  {
    DosAllocMem (&Pointers[Cntr], 1, PAG_COMMIT | PAG_READ | PAG_WRITE);

    printf ("0x%x" "\n", (ULONG) Pointers[Cntr]);
  }

  for (INT Step = 0; Step < MAX_POINTERS; Step ++)
  {
    DosFreeMem (Pointers[Step]);
  }

  return 0;
}
