warn(buf);
warn("%s", buf);
save(){	char		*sp;	int		outf, num;	time_t		t;	struct stat	sb;	char		*start, *end;	printf("Which file do you wish to save it in? ");	getbuf();	/*	 * check for existing files, and confirm overwrite if needed	 */	if (stat(buf, &sb) == 0	    && getyn("File exists.  Do you wish to overwrite? ") > 0)		return;	if ((outf=creat(buf, 0644)) < 0) {		warn(buf);		return;	}	printf("\"%s\" ", buf);	time(&t);			/* get current time		*/	strcpy(buf, ctime(&t));	for (sp = buf; *sp != '\n'; sp++)		continue;	*sp = '\0';#if 0	start = (((int) etext + (SEGSIZE-1)) / SEGSIZE ) * SEGSIZE;#else	start = 0;#endif	end = sbrk(0);	while (start < end) {		/* write out entire data space */		num = start + 16 * 1024 > end ? end - start : 16 * 1024;		write(outf, start, num);		start += num;	}	close(outf);	printf("[%s]\n", buf);}