Syntax
#include <stdio.h> int _rmtmp(void);Description
This example uses _rmtmp to remove a number of temporary files.
#include <stdio.h> int main(void) { int num; FILE *stream; if (NULL == (stream = tmpfile())) printf("Could not open new temporary file\n"); else { num = _rmtmp(); printf("Number of temporary files removed = %d\n", num); } return 0; /**************************************************************************** The output should be: Number of temporary files removed = 1 ****************************************************************************/ }Related Information