view test/tmp.c @ 94:1ad7045741a7 dbinop

float dbinop fix
author kono
date Wed, 12 Mar 2003 15:28:44 +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));
}