C application of a small shell