56cb4234
1 2 3 4 5 6 7 8 9 10 11 12
#include <stdlib.h> #include <unistd.h> int main(void) { char filename[] = "/tmp/temp.XXXXXX.suffix"; if (mkstemps(filename, 7) == -1) return 1; return unlink(filename) == -1; }