blob: a0cb30e22f4a193638f6c6200a08d91a1acda8a7 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
|
#include <stdlib.h>
#include <unistd.h>
int
main(void)
{
char dirname[] = "/tmp/temp.XXXXXX";
if (mkdtemp(dirname) != dirname)
return 1;
return rmdir(dirname) == -1;
}
|