pe_unit_from_string |
Creates a unit of measure object from its string representation
PE_UNIT pe_unit_from_string (const char *buffer);
buffer | The string representation of the unit of measure object |
Creates a unit of measure object from its string representation
On success, a unit of measure object; otherwise, a null pointer
PE_UNIT m;
char *unit_metadata = UNIT[\"Meter\",1.0];
m = pe_unit_from_string(unit_metadata);