All pastes #2086004 Raw Edit

Stuff

public text v1 · immutable
#2086004 ·published 2011-10-01 02:29 UTC
rendered paste body
int main(int argc, char **argv) {
    tree t;

    int i;

    for (i = 1; i < argc; i++) {
        if (strcmp("-r", argv[i]) == 0) {
           t = tree_new(RBT);
           break;
        } else if (strcmp("-r", argv[i]) == 0) {
           print_inorder(t);
           break;
    }

    tree_delete(t);

    return EXIT_SUCCESS;
}