2 Copyright © 2010-2013, The AROS Development Team. All rights reserved.
5 C99 function tmpfile().
6 This function is based on the public domain libnix code
10 /*****************************************************************************
21 The tmpfile() function creates a temporary file that is different from
22 any other existing file and that will automatically be removed when
23 it is closed or at program termination. The file is opened for update
30 Pointer to the stream that was created. On error NULL is returned.
33 This function uses tmpnam(NULL) to get the file name.
47 perror(strerror(errno));
51 fprintf(fp, "do a bit of writing to the temp file");
61 ******************************************************************************/
75 f
->flags
|= __STDCIO_STDIO_TMP
;