WKern
|
Go to the source code of this file.
Functions | |
void | Mkfile (const char *filename, const char *ext) |
Create a new empty file entry in the FAT16 root directory. |
void Mkfile | ( | const char * | filename, |
const char * | ext ) |
Create a new empty file entry in the FAT16 root directory.
Creates a new empty file in the FAT16 root directory.
This function searches for a free root directory entry and a free cluster, then creates a new directory entry for the specified filename and extension. It initializes the directory entry with default attributes and zero file size.
filename | The 8-character filename (without extension). |
ext | The 3-character file extension. |