Requesting Information
lgo_PrintStatusReport()
Print a status report to stdout.
#include "laygo.h"
LResult lgo_PrintStatusReport
(
LStatusReport report
);
| report | report to print |
lgo_PrintStatusReport() prints a status report to stdout.
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:
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);
}