Committed Stack Program in C