Skip to content

Latest commit

 

History

History
53 lines (36 loc) · 1.6 KB

File metadata and controls

53 lines (36 loc) · 1.6 KB
title description ms.date api_name api_location api_type topic_type f1_keywords helpviewer_keywords
_rmtmp
Learn more about: _rmtmp
4/2/2020
_rmtmp
_o__rmtmp
msvcrt.dll
msvcr80.dll
msvcr90.dll
msvcr100.dll
msvcr100_clr0400.dll
msvcr110.dll
msvcr110_clr0400.dll
msvcr120.dll
msvcr120_clr0400.dll
ucrtbase.dll
api-ms-win-crt-stdio-l1-1-0.dll
DLLExport
apiref
_rmtmp
removing temporary files
_rmtmp function
files [C++], temporary
rmtmp function
files [C++], removing
temporary files [C++], removing

_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.

By default, this function's global state is scoped to the application. To change this behavior, see Global state in the CRT.

Requirements

Routine Required header
_rmtmp <stdio.h>

For more compatibility information, see Compatibility.

Libraries

All versions of the C run-time libraries.

Example

See the example for tmpfile.

See also

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