/* far16.c */

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

int main (void)
{
  void *p;
  _far16ptr f;
  
  p = (void *)main;
  printf ("%.8lx\n", (unsigned long)p);
  f = _emx_32to16 (p);
  printf ("%.4lx:%.4lx\n",
          (unsigned long)SELECTOROF (f), (unsigned long)OFFSETOF (f));
  p = _emx_16to32 (f);
  printf ("%.8lx\n", (unsigned long)p);
  return 0;
}
