-4

When we create temporary files using tmpfile, in most cases we cannot easily predict the name. Coverity scan also complains about its vulnerability. So is there any function to create a temporary file which cannot be guessed easily?

jschuebel
  • 312
  • 2
  • 15
RAFI KC
  • 421
  • 4
  • 8

1 Answers1

2

If you using Linux, then mkstemp

Or use tmpnam

svm
  • 392
  • 3
  • 9