Code:
struct dir
{
char name[3];
int root_dir;
int has_children;
int num_children;
int offset_to_children[2];
int offset_to_files[16];
};
struct files
{
char name[5];
int size;
int offset_to_beginning;
int has_fragment;
int next_fragment;
};
struct fat
{
int files;
int dirs;
struct dir *dir_array;
struct files *file_array;
};
Code:
fat *pfat; pfat->dir_array->root_dir=0;

