Regarding how to make your library re-entrant, you must have no global or static variables that are not protected by mutexes. In general it is easy to deal with this by passing your state structure as a pointer argument to all of your functions rather than by using a global variable. I don't know what state S-Lang is in with this respect - that might be your first concern.
Thanks Bruce -- Bruce Perens K6BP [EMAIL PROTECTED] 510-215-3502 Finger [EMAIL PROTECTED] for PGP public key. PGP fingerprint = 88 6A 15 D0 65 D4 A3 A6 1F 89 6A 76 95 24 87 B3 -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .