Reference-FMUs icon indicating copy to clipboard operation
Reference-FMUs copied to clipboard

Getstring in model.h

Open mathcodemaster opened this issue 11 months ago • 1 comments

Hello, i am a big fan of the reference fmus,

this might be a stupid question, but in model.h the getstring function is defined as Status getString (ModelInstance* comp, ValueReference vr, const char* value[], size_t *index);

is the const here at the correct spot? doesnt that make the value a pointer to const arrays? and the puropse is to write into the arrays right?

best regards

Franz

mathcodemaster avatar Feb 28 '24 07:02 mathcodemaster

const char* value[] is an array of const char* that can be changed by the FMU.

t-sommer avatar Feb 28 '24 14:02 t-sommer