simple command parser in C