Partager via


_rmtmp

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at _rmtmp.

Removes temporary files.

Syntax

  
int _rmtmp( void );  

Return Value

_rmtmp returns the number of temporary files closed and deleted.

Remarks

The _rmtmp function cleans up all temporary files in the current directory. The function removes only those files created by tmpfile; use it only in the same directory in which the temporary files were created.

Requirements

Routine Required header
_rmtmp <stdio.h>

For more compatibility information, see Compatibility in the Introduction.

Libraries

All versions of the C run-time libraries.

Example

See the example for tmpfile.

.NET Framework Equivalent

Not applicable. To call the standard C function, use PInvoke. For more information, see Platform Invoke Examples.

See Also

Stream I/O
_flushall
tmpfile
_tempnam, _wtempnam, tmpnam, _wtmpnam