Function regorust::regoNodeTypeName

source ยท
pub unsafe extern "C" fn regoNodeTypeName(
    node: *mut regoNode,
    buffer: *mut c_char,
    size: regoSize,
) -> regoEnum
Expand description

@brief Returns the name of the node type as a human-readable string. @details This function supports arbitrary nodes (i.e. it will always produce a value) including internal nodes which appear in error messages. The buffer must be large enough to hold the value. The size of the buffer can be determined by calling ::regoNodeTypeNameSize. @param node The node. @param buffer The buffer to populate. @param size The size of the buffer. @return REGO_OK if successful, REGO_ERROR_BUFFER_TOO_SMALL otherwise.