#include <xom.h>
#include <xomext.h>
OM_return_code omX_object_to_string(
OM_object object,
OM_boolean local_strings,
OM_string *string);
The calling function should provide the memory for string. The string's contents are initially unspecified. The string's length becomes the number of octets required to contain the segment that the function is to read. The service modifies this parameter. The string's elements become the elements actually read. The string's length becomes the number of octets required to hold the segment actually read.
The omX_object_to_string() function converts an OM object into a string format. The object can either be a client-generated or a service-generated public or private object.
The objects that can be handled by this function are restricted to those defined in the schema file, xoischema. Additionally, the OM objects DS_C_ATTRIBUTE_ERROR and DS_C_ERROR are also handled. For these, a message string containing the error message is returned.
For the syntax of the output strings please refer to Chapter 9 in the OSF DCE Application Development Guide.
Refer to xom.h(4xom) and xomext.h for a list of the possible error values that can be returned in OM_return_code.