mirror of
https://github.com/freebsd/freebsd-src
synced 2024-09-06 17:18:32 +00:00
13 lines
175 B
C
13 lines
175 B
C
#include <stdlib.h>
|
|
#include <unistd.h>
|
|
|
|
int
|
|
main(void)
|
|
{
|
|
char dirname[] = "/tmp/temp.XXXXXX";
|
|
|
|
if (mkdtemp(dirname) != dirname)
|
|
return 1;
|
|
return rmdir(dirname) == -1;
|
|
}
|