c: reverseString and reverseList