Convert User Input String To List In C