Skip to content
Start free evaluation

pdcomm_gem_result_formatted_program_query_model_copy

Function

Copies the MDLN of the program in a query result.

PdcommStatus pdcomm_gem_result_formatted_program_query_model_copy(const PdcommGemResult *result, char *output, size_t capacity, size_t *required)

Declared in: #include <pdcomm_gem_formatted_program_queries.h>

Parameters

NameDescription
resultQuery result whose present flag is 1.
outputDestination for the ASCII bytes. May be NULL only when capacity is 0.
capacitySize of output in bytes.
requiredReceives the text length; set to 0 first.

Returns

#PDCOMM_OK when the text was copied; #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 the result has no present program; #PDCOMM_INTERNAL_ERROR when a panic was contained.