here is my code:
/* ===== SharedDisk.h ===== */
#ifndef __SHAREDISK__
#define __SHAREDISK__
typedef struct
{
char Jump[ 3 ];
char Manufacturer[ 8 ];
char BytesPerSector[ 2 ];
char SectorsPerCluster;
char ReservedSectors[ 2 ];
char FATs;
char RootDirectoryEntries[ 2 ];
char LogicalSectors[ 2 ];
char MediaDescriptorByte;
char SectorsPerFAT[ 2 ];
char SectorsPerTrack[ 2 ];
char Surfaces[ 2 ];
char HiddenSectors[ 4 ];
} Disk;
#endif
initialize them somewhere in my program as following:
theDisk->Jump = "";
theDisk->Manufacturer = "";
:
:
and so on.
is this right?
if not, how to initialize them?
thx for the help