add: }
context: do_chop (char *fname)	{	// do some checks for validity	// then call chop_file() to do the actual read/writes		struct stat e;	off_t  fsize;	int    fd;		// input file must exist	if (stat (fname, &e) == -1)		{		fprintf (stderr, "'%s': no such file or directory\n", fname);		return;		}	// and it must be not be a directory	if (S_ISDIR (e.st_mode))		{		fprintf (stderr, "'%s' is a directory\n", fname);		return;		}		// needs to be big enough such that splitting it actually does something	fsize = e.st_size;	if (fsize < (KBytesPerChunk * 1024))		{		fprintf (stderr, "'%s': file is already small enough\n", fname);		return;		}	// also, don't chop up if chunk files are already present	{	char buf[256];	strcpy (buf, fname);	strcat (buf, "00");		if (stat (buf, &e) >= 0)		{		fprintf (stderr, "'%s' already exists - aborting\n", buf);		return;		}	}	// finally! chop up the file	fd = open (fname, O_RDONLY);	if (fd < 0)		fprintf (stderr, "can't open '%s': %s\n", fname, strerror (errno));	else		{		chop_file (fd, fname, fsize);		close (fd);		}	}