aboutsummaryrefslogtreecommitdiffstats
path: root/tempfile.c
diff options
context:
space:
mode:
authorBill Meier <wmeier@newsguy.com>2009-03-10 00:05:15 +0000
committerBill Meier <wmeier@newsguy.com>2009-03-10 00:05:15 +0000
commit85d40cf8d009189644df742151a5e66df4223426 (patch)
treec93a5210750af6f0c28d7336f3cef152b76c8cb6 /tempfile.c
parentcf930e3092e9438c3cad9ec66c7535ef41fe52c7 (diff)
Copy comment from tempfile.h to tempfile.c
svn path=/trunk/; revision=27687
Diffstat (limited to 'tempfile.c')
-rw-r--r--tempfile.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/tempfile.c b/tempfile.c
index 5052a1a36d..e545b3b43a 100644
--- a/tempfile.c
+++ b/tempfile.c
@@ -100,6 +100,11 @@ static const char *E_tmpdir;
#define P_tmpdir "/var/tmp"
#endif
+/* create a tempfile with the given prefix (e.g. "ether")
+ * namebuf (and namebuflen) should be 128+1 bytes long (BTW: why?)
+ * returns the file descriptor of the new tempfile and
+ * the name of the new file in namebuf
+ */
int
create_tempfile(char *namebuf, int namebuflen, const char *pfx)
{