[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]

Re: mktemp()



thanks for the help arun
as pointed out by satish it shoud have -fwritable-strings as a compile
time flag
i had read the man pages ok but there was no mention of this flag in the
man pages 

=bye
Gautam
On 17 Jul 1999, Arun Sharma wrote:

> 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.
> 


- --------------------------------------------------------------------
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.

------------------------------