If "type" is UF_ATTR_reference then "value->value.string" must either be NULL or point to a character buffer of size UF_ATTR_MAX_STRING_LEN + 1. If the value is NULL, then the returned buffer will be allocated, and the user is responsible for freeing it by calling UF_free().
时间: 2024-02-10 13:34:12 浏览: 92
This looks like a code snippet from the Unigraphics NX API documentation. It describes the behavior of the "value" field of a data structure when the "type" field is set to UF_ATTR_reference. If "value->value.string" is NULL, then a buffer will be allocated and returned to the user, and the user is responsible for freeing it using the UF_free() function. Alternatively, if "value->value.string" points to a character buffer, it must be at least UF_ATTR_MAX_STRING_LEN + 1 in size. This buffer will be used to store the reference value.
阅读全文