OpenDOF Project
DOFValue DOFValueStructure_Create_Type ( const DOFType  type,
const DOFValue  fields[] 
)

Create a new DOFValueStructure from a list of DOFValue fields.

The number of fields is determined by the given structure type.

Resource Management:
This function allocates resources that must later be freed by calling DOFValue_Destroy.
Parameters
typeThe type of the structure to be created. This should not be NULL.
fieldsThe array of DOFValue fields to put in the DOFValueStructure (the number of fields expected is determined by the type). This must not be NULL if the structure contains any fields.
Returns
A new DOFValueStructure containing the given fields.
Exceptions
NULLis returned if insufficient resources are available to create the DOFValueStructure, if any of the fields are not compatible with the specified type, or if type or fields is NULL.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22