As suggested in his file, it was easy to translate into straight C. The two sources here are completely equivalent. Graham Toal