Mercurial > hg > CbC > old > device
view test/tmp.c @ 436:d92786033042 loprtc-div
loprtc
author | kono |
---|---|
date | Sun, 14 Nov 2004 15:41:05 +0900 |
parents | 0c256ea2a97e |
children | 32737bad7489 |
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("#0028:%d %s\n",i,p-i); printf("#0029:%d\n",main1(ac,av,g,g)); return 0; }