4.3BSD/usr/src/old/rewind.c

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

static char *sccsid = "@(#)rewind.c	4.1 (Berkeley) 10/1/80";
/* rewinds mag tape drive */
main(argc,argv) char**argv; {
	char *f;
	int fd;

	if (argc > 1) f = argv[1];
		else  f = "/dev/mt0";

	fd = open(f,0);
	if (fd < 0) printf("Can't open %s\n",f);
		else close(fd);
}