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

typedef void * (PTR);

#define Run int main
#define Say printf

#define MAX_POINTERS 25

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

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

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

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

  return 0;
}
