easy 18 in C, char* manipulation