Mercurial > hg > CbC > old > examples
view func-ptr-array.c @ 2:bf65d90b8dc8
*** empty log message ***
author | kinjo |
---|---|
date | Mon, 28 Nov 2005 13:34:57 +0900 |
parents | e59ebf6fe2b0 |
children |
line wrap: on
line source
#include<stdio.h> int aho() { static int count=0; printf("aho%d\n", count++); return(0); } int (*lis[])()={ aho, aho, aho, aho, aho, aho, aho, (void*)0, }; int main() { int i; for(i=0;lis[i]!=(void*)0;i++){ lis[i](); } return(0); }