Stack implementation in C.