[BACK]Return to test-mkdtemp.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

File: [cvsweb.bsd.lv] / mandoc / test-mkdtemp.c (download)

Revision 1.2, Tue Oct 6 18:32:20 2015 UTC (4 years, 10 months ago) by schwarze
Branch: MAIN
CVS Tags: VERSION_1_14_5, VERSION_1_14_4, VERSION_1_14_3, VERSION_1_14_2, VERSION_1_14_1, VERSION_1_13_4, VERSION_1_13, HEAD
Changes since 1.1: +2 -2 lines

modernize style: "return" is not a function

#include <stdlib.h>
#include <unistd.h>

int
main(void)
{
	char	dirname[] = "/tmp/temp.XXXXXX";

	if (mkdtemp(dirname) != dirname)
		return 1;
	return rmdir(dirname) == -1;
}