Peter wrote: > i am curious how Pascal handles the bad stuff: I'm willing to try to explain, but I'm not willing to look at undocumented code. I'm not going to sit down and "decipher" this C barf. Even if I did, I'd only know at best what it does, not what you intended it to do. Better yet, just explain what you want done in english. If it's not too complicated I can show how to do it in Pascal. > char messages[10]; > char messages[0] = "AARGH";; > char messages[1] = "RESULT:"; > // etc > > char buffer[BUFFSZ]; > void * va_func( void *arg0, ... ) > { > va_list vl; > int ll = *(int*)arg0; > char c; > int t; > void *p0 = NULL; > > va_start( vl, arg0 ); Remainder of undocumented code snipped. ******************************************************************** 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