C implementation of a Stack