Mercurial > hg > CbC > old > device
view test/tmp.c @ 80:83d901658ce9 indirect-call
*** empty log message ***
author | kono |
---|---|
date | Mon, 03 Mar 2003 05:41:10 +0900 |
parents | 64a4e3789fd2 |
children | 096559f07a70 |
line wrap: on
line source
int main1(int ac,char *av[],int (*f)(),int g()) { return (*f)(ac)+g(ac); } int g(int k) { return k+1; } main0(ac,av) { return ac; } main(ac,av) int ac; char *av[]; { register int i; register char *p; p = av[1]; if (!p) return; i = p[1]; p = p+i; printf("%d %s\n",i,p-i); printf("%d\n",main1(ac,av,g,g)); }