This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
RE: Mount table
- To: "gnu-win32 at cygnus dot com" <gnu-win32 at cygnus dot com>, "'pete at horus dot cix dot co dot uk'" <pete at horus dot cix dot co dot uk>
- Subject: RE: Mount table
- From: Sergey Okhapkin <sos at prospect dot com dot ru>
- Date: Tue, 27 May 1997 10:56:39 +0400
- Encoding: 26 TEXT
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".