Double linked list in C to simple manipulation

compile with -DT=(type) --> -DT=int or -DT=char* and comment to correct section in the main to see how it works