view test/tmp.c @ 234:eccea7c904ee

float powerpc drexp done (?)
author kono
date Thu, 29 Apr 2004 19:40:43 +0900
parents 096559f07a70
children 0c256ea2a97e
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));
    return 0;
}