A set of routines for displaying blocks for diagnostic purposes.
const char* gcf_display_header |
( |
const union gcf_union_hdr * |
hdr | ) |
|
Display block header.
- Parameters
-
hdr | Pointer 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.
const char* gcf_display_block |
( |
const char * |
block, |
|
|
int |
len |
|
) |
| |
Display block details (including status/samples).
- Parameters
-
block | Pointer to block data. |
len | Length of block data (1024 if unknown). |
- Return values
-
0 | on 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.