summaryrefslogtreecommitdiffstats
path: root/contrib/mdocml/test-mkdtemp.c
blob: a0cb30e22f4a193638f6c6200a08d91a1acda8a7 (plain)
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;
}
OpenPOWER on IntegriCloud