pdcomm_gem_result_formatted_program_capability_model_copy
Function
Copies the MDLN (model name) of a capability result.
PdcommStatus pdcomm_gem_result_formatted_program_capability_model_copy(const PdcommGemResult *result, char *output, size_t capacity, size_t *required)Parameters
| Name | Description |
|---|---|
result | GEM result that holds a capability. |
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; set to 0 first. 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 required or result is NULL, or output is NULL with a nonzero capacity; #PDCOMM_INVALID_STATE when result holds no capability.