tmpfile () functions says that:
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."
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.
My application can exit abnormally so tmpfile () function can work here on abnormal exit.
How can I get the temporary file path and file automatically delete on exit