/* 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>

typedef void (*fptr)(int a);

void f1(int a)
{
    printf("f1: %d\n", a);
}

void f2(int a)
{
    printf("f2: %d\n", a);
}

void test(fptr f)
{
    f(123);
}

int main()
{
    test(f1);
    test(f2);
    return 0;
}
