Subject: RE: Mount table
From: [email-masked] (Sergey Okhapkin)

27 May 1997 00:55:27 -0700
Approved: [email-masked]
Distribution: cygnus
Message-ID: <[email-masked]>
Original-To: "[email-masked]" <[email-masked]>,
        "[email-masked]'" <[email-masked]>
Encoding: 26 TEXT
Original-Sender: [email-masked]

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
"[email-masked]" with one line of text: "help".