Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

7.5.7 BSFILE structure

The BSFILE structure is a structure to specify input file path name and temporary file path name.
The size of the area when the area of BSFILE structure is secured can be calculated by using BS_FILESIZE(n). BS_FILESIZE(n) is a macro to calculate the size of BSFILE structure with n pieces of file path name pointer.

typedef struct {
    unsigned long    entry_no;
    BSPTR_UCHAR      file_addr[1];
} BSFILE;

BSFILE structure member

In the following, it explains about the member of the BSFILE structure.

entry_no

This specifies the number of input file path names or temporary file path names.
When 0 is specified, this means that the input file path name or temporary file path name is omitted. When the input file path name is specified in the merge option, the same value should be specified in the number of input file path name and input_string of BSRTPRIM structure.

file_addr[n]

This specifies the address of input file path name or temporary file path name.
The file path name is a character string that ends with '\0'.