The docs for mkstemp are somewhat short. (One must add XXXXXX to the end of the template for things to go, and probably prepend a path as well.) Apparently it is better to use tmpfile(3) now. How difficult would it be to provide that function as well? (Note the return type is FILE *.) cheers pete -- http://peteg.org/