/* Copyright (c) 2001-2009 by SoftIntegration, Inc. All Rights Reserved */
#include <stdarg.h>

int setarrayfunc(int n, int (*f[])(int num));

int f0(int num) {
  printf("f0() is called, num = %d\n", num);
  return 0;
}

int f1(int num) {
  printf("f1() is called, num = %d\n", num);
  return 0;
}

int f2(int num) {
  printf("f2() is called, num = %d\n", num);
  return 0;
}

int main() {
  int (*f[3])(int num);
  f[0] = f0;
  f[1] = f1;
  f[2] = f2;

  setarrayfunc(3, f);
  return 0;
}
