Mercurial > hg > CbC > old > device
view test/tmp.c @ 151:81032a1b8a5d
MIPS continue
author | kono |
---|---|
date | Mon, 14 Jul 2003 14:40:35 +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)); }