How can I get the temporary filename by using the tmpfile ()
<p>tmpfile () functions says that:</p>

<blockquote>
  <p>The temporary file created is automatically deleted when the stream is closed (fclose) or when the program terminates normally. If the program terminates abnormally, whether the file is deleted depends on the specific system and library implementation."</p>
</blockquote>

<p>tmpfile () function returns a stream pointer to the temporary file created and not the path of file.
I need temporary filename path as it needed to pass other library function.</p>

<p>My application can exit abnormally so tmpfile () function can work here on abnormal exit.</p>

<p>How can I get the temporary file path and file automatically delete on exit     </p>