C implementation for a simple menu builder.