C
Description
With the data passed within fo, create a new file entry in the current directory. This function will first search for empty file entries. Once an empty entry is found, the entry will be populated with data for a file or directory entry. Finally, the first cluster of the new file will be located and allocated, and its value will be written into the file entry.
Preconditions
Should not be called by the user.
Parameters
Parameters |
Description |
fo |
Pointer to file structure |
fHandle |
Location to create file |
Return Values
Return Values |
Description |
CE_GOOD |
File Creation successful |
CE_DIR_FULL |
All root directory entries are taken |
CE_WRITE_ERROR |
The head cluster of the file could not be created. |
Side Effects
Modifies the FSerrno variable.
Remarks
None