Which function in C helps me to determine what the disk format of the drive is that I am going to r+w a file on?
I need to determine whether it's NTFS or FAT32, etc.
Thanks,
Mike
Which function in C helps me to determine what the disk format of the drive is that I am going to r+w a file on?
I need to determine whether it's NTFS or FAT32, etc.
Thanks,
Mike
NEVER PET YOUR DOG WHILE IT'S ON FIRE!
You could run a separate script to figure it out, (like Python or something) and have it report back to your C program, just to give you an idea. The only thing I know about that is you'll need to use a function called execv() in unistd.h
Here's the manpage: http://unixhelp.ed.ac.uk/CGI/man-cgi?exec+3
I'm sorry I can't help you more.
This isn't part of c since c functions don't care about the file system format the OS takes care of that. If your OS allows you to open a disk drive as a file then you can examine it and determine which file system is in use.
> I need to determine whether it's NTFS or FAT32, etc.
Why?
Nothing in the standard C library gives a damn about such things.
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
How about Win32 GetVolumeInformation ?