On Jan 11, 2016, at 11:57 AM, Stephan Beal <sgbeal at googlemail.com> wrote: > > On Mon, Jan 11, 2016 at 7:55 PM, Warren Young <wyml at etr-usa.com> wrote: > >> There must be an equivalent of mkstemp() on Windows, doubtless taking 3 >> times as many parameters and with a function name 4 times as long. :) > > sqlite exposes the functionality of fetching a temp file name using its > mechanism, but i don't recall at the moment how it's done.
I see sqlite3_temp_directory(), but it isn?t documented here: https://www.sqlite.org/c3ref/funclist.html so I don?t think you can count on it to remain available. SQLite doesn?t use mkstemp(3), so it must be reinventing that particular wheel.