tmpfile

Creates a temporary binary file

Local Servers:blocking
Remote Servers:blocking
Classification:ANSI
Platform:NLM
Service:Stream I/O

Syntax

  #include <stdio.h>  
   
  FILE *tmpfile  (void);
  

Return Values

The tmpfile function returns a pointer to the stream of the file that it created. If the file cannot be created, the tmpfile function returns NULL. If an error occurs, errno is set.

Remarks

The tmpfile function creates a temporary binary file that is automatically removed when it is closed or at program termination. The file is opened for update.

See Also

fopen, freopen, tmpnam (Multiple and Inter-File Services)