OpenDOF Project
DOFValue DOFValueString_Create ( uint16  encoding,
uint32  strLength,
const char *  val 
)

Create a new DOFValue to hold a single value of type Fixed-Encoding String.

Resource Management:
This function allocates resources that must later be freed by calling DOFValue_Destroy.
Parameters
encodingThe MIBenum value, a unique value identifying a specific coded character set used by val. This should be > 2. Values can be found at http://www.iana.org/assignments/character-sets. Example: DOFVALUESTRING_US_ASCII.
strLengthThe number of characters in val (used only for type compatibility). This should be <= PCRString_Length(val). This may be 0 to disable string length checking for this value.
valThe Fixed-Encoding String value to be held by the new DOFValue. This must not be NULL if strLength > 0. If not NULL, the string must be NULL-terminated.
Returns
The new DOFValue, representing a single value of type Fixed-Encoding String.
Exceptions
NULLis returned if the resulting DOFValue could not be created, or an invalid parameter was detected.
core-c-dof-oal Version 8.0.1 Build 0
2018-01-22