C/stdio.h/tmpfile — различия между версиями
Admin (обсуждение | вклад) м (1 версия: Импорт контента...) |
|
(нет различий)
|
Версия 14:20, 25 мая 2010
tmpfile: opens a temporary binary file for read/write operations and returns a pointer to the stream
//Declaration: FILE *tmpfile(void);
//Return: returns a null pointer on failure.
#include <stdio.h>
int main(void){
FILE *temp;
if((temp=tmpfile())==NULL) {
printf("Cannot open temporary work file.\n");
exit(1);
}
}