view test/tmp11.c @ 445:5ec2a88b9f4d const-attribute

const
author kono
date Sun, 21 Nov 2004 19:20:18 +0900
parents 0c256ea2a97e
children 32737bad7489
line wrap: on
line source

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

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

int
test0(int a,int b,int c) {
    printf("#0013:a %d b %d c %d\n",a,b,c);
    return 0;
}

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("#0031:return %d\n",d);
    return d;
}