Information Technology Reference
In-Depth Information
// If the entry is for a volume ID or hidden file, skip it.
if ((attrib != ATTR_VOLUME) && (attrib & ATTR_HIDDEN) != ATTR_HIDDEN)
{
statusB = CE_GOOD;
character = (byte)'m'; // random value
// Look for a name match.
for (index = 0; (statusB == CE_GOOD) && index < DIR_NAMECOMP; index++)
{
// Get a character from the found file's name.
character = foDest -> name[index];
// Get the corresponding character from the file name we're searching for.
test = foCompareTo -> name[index];
if (tolower(character) != tolower(test))
// Quit the loop if a character doesn't match.
statusB = CE_FILE_NOT_FOUND;
}
}
} // End: An entry was found.
else
{
// An empty or deleted entry was found.
if ( cmd == 2)
statusB = CE_GOOD;
}
// Increment the number of the entry in the directory.
fHandle++;
} // End: loop until found or end of directory.
} // End: Cache_File_Entry was successful.
return(statusB);
}
Search WWH ::




Custom Search