This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Q] mktemp


Hello List,
I wanted to generate tmp files by mktemp() and mkstemp() in a C++
program. The use of these 2 functions result in segmentation faults.
How do i use these ?
Heres how i'm using them
______________________
mkstemp("tempXXXXXX");
______________________

GCC--> 2.96
OS--> RedHat 7.1
Kernel--> 2.5.6

TIA

Tc


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]