Apple interview question

Design a FIFO buffer using the C programming language.