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

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

13 lines
185 B
C
Raw Normal View History

2021-11-15 15:35:39 +00:00
#include <stdlib.h>
#include <unistd.h>
int
main(void)
{
char filename[] = "/tmp/temp.XXXXXX.suffix";
if (mkstemps(filename, 7) == -1)
return 1;
return unlink(filename) == -1;
}