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

#define Main main

#define MAX_POINTERS 25

Main ()
{
  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]), Pointers[Step] = NULL;
  }

  return 0;
}
