I rushed my post. Didn't mean to use the Basic intrinsic input function in my C example. I've written programs in both Basic and C, but none of yet required string manipulation.
So ignore the input function. What else do I need to do to accomplish my objective. I can provide a simpler example if that will make communications easier.