Question: The C structure describing the header is shown below : typedef struct { int magic; / * This must have the value 0 x 6

The C structure describing the header is shown below :
typedef struct
{
int magic; /* This must have the value 0x63746172.*/
int eop; /* End of file pointer. */
int block_count; /* Number of entries in the block which are in-use. */
int file_size[4]; /* File size in bytes for files 1..4*/
char deleted[4]; /* Contains binary one at position i if i-th entry was deleted. */
int file_name[4]; /* pointer to the name of the file. */
int next; /* pointer to the next header block. */
} hdr;
There is no maximum file size. File name length will not exceed what can be stored in a short. For the
size of the header, do not assume a constant value; use sizeof() instead

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!