C Header of FAT
In Linux, there is already predefined header for accessing the FAT32 system. Just include :
#include <linux/msdos_fs.h>
You can check the whole file in/usr/include/linux/
folder. Inside this header, there is a predefined structure, called fat_boot_sector and msdos_dir_entry. This provides a simple way to get all the parameters