Forrest W Christian wrote: > I know how to write this myself, > but I'd rather just use some existing code Software reuse for such simple things is overrated. Yes, maybe you can find code that sortof does what you want, but by the time you integrate it into your code, adjust the interface to your needs, test it, you could have written exactly what you wanted. ******************************************************************** Embed Inc, Littleton Massachusetts, http://www.embedinc.com/products (978) 742-9014. Gold level PIC consultants since 2000. -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist