This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Mount table


Pete Jordan wrote:
> I don't have any of the sources here ATM, but what's another 7MB down my
> dialup link anyhow :)
> 

#include <stdio.h>
#include <mntent.h>

main()
{
	FILE *m;
	struct mntent *mnt;

	if(m=setmntent(MOUNTED, "r")) {
		while(mnt=getmntent(m))
			printf("%-30s\t%s\n", mnt->mnt_fsname, mnt->mnt_dir);
		endmntent(m);
	}
}


-- 
Sergey Okhapkin
Moscow, Russia
Looking for a job.


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]