// ----------------------------------------------#include stdio.hint main () {FILE *fp;fp = tmpfile();

编程学习网为您整理以下代码实例,主要实现:C语言库tmpfile()函数,希望可以帮到各位朋友。

// ----------------------------------------------
#include <stdio.h>

int main () {
   file *fp;

   fp = tmpfile();
   printf("Temporary file created\n");

   /* you can use tmp file here */
   fclose(fp);
   return(0);
}