Answers for "C temporary files"

C
0

C temporary files

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
...
char temp_file[] = "/tmp/tmp.XXXXXX";
int fd = mkstemp(temp_file);
dprintf(fd, "Hello World!!!n");
close(fd);
Posted by: Guest on February-19-2022

Code answers related to "C"

Browse Popular Code Answers by Language