delorie.com/djgpp/doc/libc/libc_823.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

tmpfile

Syntax

 
#include <stdio.h>

FILE *tmpfile(void);

Description

This function opens a temporary file. It will automatically be removed if the file is closed or when the program exits. The name of the file is generated by the same algorithm as described under tmpnam() (see section tmpnam).

Return Value

A newly opened file.

Portability

ANSI/ISO C C89; C99
POSIX 1003.2-1992; 1003.1-2001

Example

 
FILE *tmp = tmpfile();


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004