Format Sint32 BUP_Dir (Uint32 device, Uint8 * fname, Uint16 dirsize, BupDir * dir)
Input device: Device number
0: Internal memory
1: Memory cartridge or parallel interface
2: Serial interface
fname: File name specification (up to 11 characters in ASCII)
dirsize: Specify the number of secured directory information
Output dir: Directory information is stored
Function value Number of directory information hits.
Function Searches the file name with a prefix and stores the directory information in the table.
The number of directory information hit by the search is returned as a function value.
If is negative, it means that the table size is insufficient, and the number of cases can be confirmed by inverting the sign.
(If the search result is 11 with tbsize set to 10, -11 is returned.)