[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: mktemp()
- Subject: Re: mktemp()
- From: Arun Sharma <adsharma@xxxxxxxx>
- Date: 17 Jul 1999 11:59:23 -0700
GAUTAM VSNL <ggupta@xxxxxxxxxxxxxxx> writes:
> i tried a code with mktemp() system call to generate a random filename.it
> fail with a core dump.the same thing works on solaris
Are you following the mktemp(3) man page ?
gdb and strace are your friends.
-Arun
NAME
mktemp - make a unique temporary file name
SYNOPSIS
#include <unistd.h>
char *mktemp(char *template);
DESCRIPTION
The mktemp() function generates a unique temporary file
name from template. The last six characters of template
must be XXXXXX and these are replaced with a string that
makes the filename unique.
- --------------------------------------------------------------------
For more information on Linux in India visit http://www.linux-india.org/
Please do not post HTML email to this mailing list. HTML mails will be
thoroughly ignored and derisively sniggered at in private.
------------------------------