FAT file system emulator in C