mud/lib/doc/sefun/generate_tmp
2020-09-06 05:43:07 -07:00

31 lines
706 B
Plaintext

GENERATE_TMP(1) GENERATE_TMP(1)
NAME
generate_tmp() - Create a unique temp filename.
SYNOPSIS
varargs string generate_tmp(mixed arg)
DESCRIPTION
If the user has a home directory, the function tries
to use their tmp/ dir, otherwise /open is used. The filename is
generated by using the arguments, if any, and adding them to
ctime plus some random characters for good measure.
EXAMPLES
generate_tmp(this_player()) returns "/realms/cratylus/tmp/cratylus80irhLDFd7sWg1140052843.c"
LOCATION
/secure/sefun/strings.c
SEE ALSO
Author
Cratylus @ Dead Souls
1