printf("Prompting off for duration of %s\n", cmd);
printf("Prompting off for duration of %s.\n", cmd);
confirm(cmd, file)	const char *cmd, *file;{	char line[BUFSIZ];	if (!interactive || confirmrest)		return (1);	printf("%s %s? ", cmd, file);	(void)fflush(stdout);	if (fgets(line, sizeof(line), stdin) == NULL)		return (0);	switch (tolower(*line)) {		case 'n':			return (0);		case 'p':			interactive = 0;			puts("Interactive mode: off");			break;		case 'a':			confirmrest = 1;			printf("Prompting off for duration of %s\n", cmd);			break;	}	return (1);}