tranger2_print_record_filename()

tranger2_print_record_filename()#

Formats and stores the filename of a record in a buffer, using metadata from tranger2_print_record_filename().

Prototype

void tranger2_print_record_filename(
    char *bf,
    int bfsize,
    json_t *tranger,
    json_t *topic,
    const md2_record_ex_t *md_record_ex,
    BOOL print_local_time
);

Parameters

Key

Type

Description

bf

char *

Pointer to the buffer where the formatted filename will be stored.

bfsize

int

Size of the buffer in bytes.

tranger

json_t *

Pointer to the TimeRanger database instance.

topic

json_t *

Pointer to the topic associated with the record.

md_record_ex

const md2_record_ex_t *

Pointer to the record metadata structure.

print_local_time

BOOL

Flag indicating whether to format timestamps in local time.


Return Value

This function does not return a value.

Notes

The buffer bf must be large enough to store the formatted filename. The function retrieves metadata from tranger2_print_record_filename() to construct the filename.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples