help on boot sector plzzzzz

This is a discussion on help on boot sector plzzzzz within the C Programming forums, part of the General Programming Boards category; here is the code:
Code:
/* ===== SharedDisk.h ===== */
#ifndef __SHAREDISK__
#define __SHAREDISK__
typedef struct
{
unsigned short Jump;
...

the data in "disk.img" is written, as a structure identical to "Disk".
this file is made from the floopy disk.
floppy disks have a logical sector size of 512 bytes.
that is why 512 is there.
buffer only stores one sector at a time.
read the Boot Sector and fill in the appropriate structures in theDisk.
display a human readable summary of the disk information read from the boot sector on stdout.