freebsd-src/contrib/mandoc/test-mkdtemp.c

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
175 B
C
Raw Normal View History

2016-01-15 23:08:59 +00:00
#include <stdlib.h>
#include <unistd.h>
int
main(void)
{
char dirname[] = "/tmp/temp.XXXXXX";
if (mkdtemp(dirname) != dirname)
return 1;
return rmdir(dirname) == -1;
}