Thank you for the help! Your code works now. Was the problem the standard C printf? > > The attached file is my own test and partial rewrite of your function, > which essentially works. > > -- Chris Nicholson-Sauls >