view test/tmp.c @ 515:3d921f7a8e74

*** empty log message ***
author kono
date Mon, 26 Dec 2005 09:18:36 +0900
parents a379da780856
children 2f577690bcfb
line wrap: on
line source

int printf(const char *format, ...);


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("#0030:%d %s\n",i,p-i);
    printf("#0031:%d\n",main1(ac,av,g,g));
    return 0;
}