On Fri, 27 Dec 2013 03:23:00 +0000, David Eagen wrote: > Here is a first attempt. I'm sure there are much better ways to do > this but this should at least get you going in the right direction. > ... Thanks! BTW, it it a requirement to use malloc, and if so, when would I need to free the memory allocated by it?