Skip to content

Latest commit

 

History

History
92 lines (81 loc) · 2.18 KB

File metadata and controls

92 lines (81 loc) · 2.18 KB
title _rmtmp | Microsoft Docs
ms.custom
ms.date 11/04/2016
ms.reviewer
ms.suite
ms.technology
cpp-standard-libraries
ms.tgt_pltfrm
ms.topic article
apiname
_rmtmp
apilocation
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
apitype DLLExport
f1_keywords
rmtmp
_rmtmp
dev_langs
C++
helpviewer_keywords
removing temporary files
_rmtmp function
files [C++], temporary
rmtmp function
files [C++], removing
temporary files [C++], removing
ms.assetid 7419501e-2587-4f2a-b469-0dca07f84736
caps.latest.revision 10
author corob-msft
ms.author corob
manager ghogen
translation.priority.ht
cs-cz
de-de
es-es
fr-fr
it-it
ja-jp
ko-kr
pl-pl
pt-br
ru-ru
tr-tr
zh-cn
zh-tw

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

See Also

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