delorie.com/djgpp/doc/libc/libc_499.html   search  
libc.a reference

[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

_is_fat32

Syntax

 
#include <dos.h>

int _is_fat32( const int drive );

Description

This function checks if drive number drive (1 == A:, 2 == B:, etc.) is formatted with FAT32.

For performance reasons the result is cached, hence if a drive is reformatted either from or to FAT32 a DJGPP program must be restarted.

Return Value

1 if the drive is formatted with FAT32, otherwise 0.

Portability

ANSI/ISO C No
POSIX No

Example

 
#include <stdio.h>
#include <dos.h>

int main(void)
{

  if( _is_fat32( 'C' - 'A' + 1 ) )
  {
    printf("C: is a FAT32 drive.\n");
  }
  else
  {
    printf("C: is not a FAT32 drive.\n");
  }

  exit(0);
}


  webmaster     delorie software   privacy  
  Copyright © 2004     Updated Apr 2004