Information Technology Reference
In-Depth Information
// An entry exists. Store the entry's name in the file structure's name member.
for (index=0; index < DIR_NAMESIZE; index++)
{
character = dir -> DIR_Name[index];
fo -> name[test++] = character;
}
// If the entry has an extension, store it in the file's structure's name member.
character = dir -> DIR_Extension[0];
if (character != ' ')
{
for (index = 0; index < DIR_EXTENSION; index++)
{
character = dir->DIR_Extension[index];
fo -> name[test++] = character;
}
}
// Store the passed entry number.
fo -> entry = *fHandle;
// Store the entry's file size.
fo -> size = (dir -> DIR_FileSize);
// Store the entry's initial cluster number.
temp = (dir -> DIR_FstClusHI << 16);
temp |= dir -> DIR_FstClusLO;
fo -> cluster = temp;
// Store the entry's date and time.
fo -> time = (dir -> DIR_WrtTime);
fo -> date = (dir -> DIR_WrtDate);
Search WWH ::




Custom Search