[Home] [Back] [Up] [<<] [>>]

Report

Creates the reports according the spec.

Syntax

int reportReport(char *sError, int (*f)(int iProgress));

Syntax description

sErrorpointer to the buffer to receive an error description in the event of an error. This buffer needs to be at least MAX_STANREPORTSPEC_ERROR_STRING + 1 characters in length.
fthe pointer to a callback function. This can be null, in which case, no callback will be made. The callback function needs to return zero to continue, or non-zero to interrupt the reporting.
iProcessIf positive, it’s the number of records of the input-file read so far. This will be updated every 1000 records. If negative, it’s an indication of other processing being done, and numbers will begin with -1 and continue downwards.
Return values

Returns zero on success, and an error number on error.

Remarks

Set the spec before calling Report.

Report will create the chosen reports, and if specified, re-sort the input file and divide it into Sort-Levels and States.