Project/Real_code/book/ch08/ch08-mounted.c
void process(const char *filename)
{
	FILE *fp;
	struct mntent *fs;

	fp = setmntent(filename, "r");	/* read only */
	if (fp == NULL) {
		fprintf(stderr, "%s: %s: could not open: %s\n",
			myname, filename, strerror(errno));
		exit(1);
	}

	while ((fs = getmntent(fp)) != NULL)
		print_mount(fs);

	endmntent(fp);
}
/* process --- read struct mntent structures from file */
read struct mntent structures from file
read struct mntent structures from file
void process(const char *filename)
{
	FILE *fp;
	struct mntent *fs;
	fp = setmntent(filename, "r");	
	if (fp == NULL) {
		fprintf(stderr, "%s: %s: could not open: %s\n",
			myname, filename, strerror(errno));
		exit(1);
	}
	while ((fs = getmntent(fp)) != NULL)
		print_mount(fs);
	endmntent(fp);
}
void process ( const char * filename ) { FILE * fp ; struct mntent * fs ; fp = setmntent ( filename , " " ) ; if ( fp == NULL ) { fprintf ( stderr , " \n " , myname , filename , strerror ( errno ) ) ; exit ( 1 ) ; } while ( ( fs = getmntent ( fp ) ) != NULL ) print_mount ( fs ) ; endmntent ( fp ) ; }
process --- read struct mntent structures from file
process --- read struct mntent structures from file
/* read only */