/* Collection of code snippets by Arne Vajhøj */
/* (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) */
#include <stdio.h>

void f(int typ,void *arg)
{
   if(typ==1) printf("%d\n",*((int *)arg));
   if(typ==2) printf("%f\n",*((double *)arg));
}

int main()
{
   int i = 123;
   double x = 123.456;
   f(1,&i);
   f(2,&x);
   return 0;
}
