libdata-gcf  1.1.2
Functions
Diagnostic display.

Functions

const char * gcf_display_header (const union gcf_union_hdr *hdr)
 Display block header. More...
 
const char * gcf_display_block (const char *block, int len)
 Display block details (including status/samples). More...
 

Detailed Description

A set of routines for displaying blocks for diagnostic purposes.

Function Documentation

◆ gcf_display_header()

const char* gcf_display_header ( const union gcf_union_hdr hdr)

Display block header.

Parameters
hdrPointer to ready-parsed block header.
Returns
Pointer to display information.

Returns a pointer to a line of information about a given block header. The line is null terminated but does not have a newline character.

◆ gcf_display_block()

const char* gcf_display_block ( const char *  block,
int  len 
)

Display block details (including status/samples).

Parameters
blockPointer to block data.
lenLength of block data (1024 if unknown).
Return values
0on error (could not parse block; see ref gcf_errstr).
Returns
Pointer to display information.

Returns a pointer to several lines of information about a given block. The information is null terminated and contains embedded newlines, but is not followed by a newline character.