libtmpfile (3) Linux Manual Page
NAME pm_tmpfile() – create a temporary unnamed file SYNOPSIS #include <netpbm/pm.h> FILE * pm_tmpfile(void); EXAMPLE This simple example creates a temporary file, writes ‘hello world’ to it, then reads back and prints those contents. #include <netpbm/pm.h> FILE *myfileP; myfile = pm_tmpfile(); fprintf(myfile, ‘hello world ‘); fseek(myfileP, 0, SEEK_SET); fread(buffer, sizeof(buffer), 1, myfileP); fprintf(STDOUT, ‘temp file…
