4.3BSD/usr/guest/sam/tests/mkdir.c

Compare this file to the similar file:
Show the results in this format:

static char *sccsid = "%W% (Berkeley) %G%";
/*
 * make directory
 */
#include <stdio.h>

main(argc, argv)
	char *argv[];
{
	register int errors = 0;

	if(argc < 2) {
		fprintf(stderr, "mkdir: arg count\n");
		exit(1);
	}
	while(--argc)
		if (mkdir(*++argv, 0777) < 0)
			perror(*argv), errors++;
	exit(errors != 0);
}