Rate This Document
Findability
Accuracy
Completeness
Readability

krl_build_distanceHandle_fromfile

Interface Definition

int krl_build_distanceHandle_fromfile(FILE* f, KRLDistanceHandle** kdh);

Function

Reads data of a distance computation handle from a file and rebuilds the handle.

Parameters

Parameter

Data Type

Description

Value Range

f

FILE*

Handle to the source file for reading

It cannot be null.

kdh

const KRLDistanceHandle*

Pointer to a KRLDistanceHandle instance.

It cannot be null.

Return Values

Data Type

Description

int

0 is returned on successful execution. In case of failure, an error code is returned to indicate the specific issue:

  • -1: invalid pointer
  • -2: memory allocation failure
  • -3: invalid input parameter
  • -4: double free
  • -5: insecure memory operation
  • -6: I/O failure