view test/tmp11.c @ 48:8575ec496cd4

jump with overrupped struct (first code)
author kono
date Sun, 16 Feb 2003 01:01:06 +0900
parents b1c8ac8c308d
children 096559f07a70
line wrap: on
line source

typedef struct nametable {
        char *nm;
        int sc,ty,dsp; } NMTBL;
NMTBL *a;

NMTBL *
test2(char *n) {
    printf("s %s\n",n);
    return a;
}

int
test0(int a,int b,int c) {
    printf("a %d b %d c %d\n",a,b,c);
    return 4;
}

int
test1(a,b,c) 
int a,b;int c;
{
    return test0(a,b,c);
}

int
main()
{
    int d;
    NMTBL *b;
    b = test2("test");
    d = test1(1,2,3);
    printf("return %d\n",d);
    return d;
}