Requesting Information

Print Status Report

lgo_PrintStatusReport()

Print a status report to stdout.

Syntax
#include "laygo.h"

LResult lgo_PrintStatusReport
    (
        LStatusReport    report
    );
reportreport to print
Description

lgo_PrintStatusReport() prints a status report to stdout.

Return Values

If successful, lgo_PrintStatusReport() returns a non-negative value representing the number of bytes written to stdout. Otherwise, it returns a negative value indicating the reason it failed. Possible unsuccessful return values are:

See Also

lgo_FormatStatusReport()
lgo_FormatStatisticsTable()
lgo_PrintStatisticsTable()

Example
if ((error = (LError) lgo_GetStatus(cid, tempBuf, count)) < 0)
{
    PRINT_FAILURE(error, "GetStatus", cid);
}
else if (error > 0)
{
    printf("\nStatus Report for CID %d:\n\n", cid);
    lgo_PrintStatusReport((LStatusReport) tempBuf);
}
else
{
    printf("No status data returned on CID %d.\n", cid);
}