Top
PowerBSORT V7.0 User's Guide
FUJITSU Software

7.4.2 bsrtclse function

The bsrtclse function deletes the execution environment of PowerBSORT that the bsrtopen function constructed.

Format

#include "bsrt.h"
int bsrtclse (long int BSRTVL, BSPTR_BSRTFUNC func,
              BSPTR_BSRTPRIM prim, BSPTR_BSRTREC rec);

Function explanation

The function of the bsrtclse function is shown below.

Parameter detail

In the following, it explains the parameter of the bsrtclse function.

BSRTVL

This specifies version levels (BSRTVL) of PowerBSORT.
BSRTVL is defined in header file (bsrt.h).

func

This specifies func specified in bsrtopen function.

Information

BSPTR_BSRTFUNC is a pointer of BSRTFUNC structure.

prim

This specifies prim specified in bsrtopen function.

Information

BSPTR_BSRTPRIM is a pointer of BSRTPRIM structure.

rec

This specifies rec specified in bsrtopen function.

Information

BSPTR_BSRTREC is a pointer of BSRTREC structure.

Return value

The return values of the bsrtclse function are as follows.

Return value

Meaning

0

This shows that the bsrtclse function ended normally.

1

This shows that the interruption of processing ended normally when the interruption of processing is directed.
In the following situation, if the bsrtclse function is issued, processing will be interrupted.

-1

This shows that an error occurred in the bsrtclse function.
Detailed information is set in errdetail or sub_error_code of BSRTREC structure.

Note

In the parameter of the bsrtclse function, there is no member that the user application should newly set.