summaryrefslogblamecommitdiffstats
path: root/test-mkdtemp.c
blob: 8e1c46cafeee4542068cf92da49c7cb2ead9533b (plain) (tree)
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);
}