All pastes #772119 Raw Edit

Stuff

public text v1 · immutable
·published 2007-11-13 15:49 UTC
rendered paste body
typedef struct NODE {
        int value;
        struct NODE *next;
}NODE;

NODE get_last(NODE **first_node) {
        NODE *brsw_node;

        if (first_node->next == NULL) {
                return(first_node);
        }
        brsw_node = first_node->next;
        while(brsw_node->next != NULL) {
                brsw_node = brsw_node->next;
        }
        return(&brsw_node);
}