pdcomm_gem_formatted_program_execution_snapshot_model_copy
Function
Copies the executed program's MDLN (model name).
PdcommStatus pdcomm_gem_formatted_program_execution_snapshot_model_copy(const PdcommGemFormattedProgramExecutionSnapshotHandle *snapshot, char *output, size_t capacity, size_t *required)Parameters
| Name | Description |
|---|---|
snapshot | Live snapshot handle. |
output | Destination for the ASCII bytes. May be NULL only when capacity is 0. |
capacity | Size of output in bytes. |
required | Receives the text length. Must not be NULL. |
Returns
#PDCOMM_OK on success; #PDCOMM_BUFFER_TOO_SMALL when capacity is smaller than *required (output untouched); #PDCOMM_INVALID_ARGUMENT when snapshot or required is NULL, or output is NULL with a nonzero capacity; #PDCOMM_INVALID_STATE when the snapshot is in the EMPTY state.