test197.c 315 Bytes
Newer Older
1 2 3 4 5 6 7 8
#define NULL ((void *)0)

struct crust_ts {
    char var1;
    int var2;
    struct crust_ts *next;
};

9
typedef __crust__ struct crust_ts* crust_t;
10 11 12 13 14 15 16 17 18 19 20

void function2(crust_t);

void function(crust_t var) {

    crust_t tmp;
    for(; var != NULL; var = tmp) {
        tmp = var->next;
        function2(var);
    }
}