Mount table

Sergey Okhapkin sos@prospect.com.ru
Mon May 26 23:55:00 GMT 1997


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".


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /