#include <stdio.h> name = tmpnam(s);
"tmpnam" generates a name for a temporary file using the path prefix defined as "P_tmpdir" in <stdio.h>. Only the name is created: the file is not created or opened. Each call to "tmpnam" creates a new name (and may overwrite the previous one if "s" is NULL).
In this version of C, names created by "tmpnam" will have the form "fc*NN", where NN is a pair of digits. If the program actually opens a file with this name, it will be a GCOS-8 temporary file; in batch, it will have the file code NN.
expl nsc lib mktemp
expl nsc lib tmpfile
Copyright © 2000, Thinkage Ltd.