Apple2: Provide a way to get directory file count
The information is available in the directory key block. Providing it to the user as soon as opendir() is done can save them costly code.
This commit is contained in:
committed by
Oliver Schmidt
parent
36132a437b
commit
40d9f3eed5
@@ -45,6 +45,7 @@ struct DIR {
|
||||
int fd;
|
||||
unsigned char entry_length;
|
||||
unsigned char entries_per_block;
|
||||
unsigned int file_count;
|
||||
unsigned char current_entry;
|
||||
union {
|
||||
unsigned char bytes[512];
|
||||
|
||||
Reference in New Issue
Block a user