![]() |
|
The mi_lo_specget_sbspace() function obtains from an LO-specification structure the name of an sbspace where a smart large object is stored.
The mi_lo_specget_sbspace() function is the LO-specification accessor function that returns the sbspace name from a set of storage characteristics. The function copies up to (length-1) bytes into the sbspace_name buffer and ensures that it is null terminated. An sbspace name can be up to 18 characters long. However, you might want to allocate at least 129 bytes for the sbspace_name buffer to accommodate future increases in the length of an sbspace name.
Important: Before you call mi_lo_specget_sbspace(), you must put storage characteristics into an LO-specification structure.
You can use any of the following functions to initialize the LO-specification structure:
The mi_lo_specget_sbspace() function obtains the current value for the name of the sbspace from the LO-specification structure that LO_spec references.
MI_OK | indicates that the function was successful. |
MI_ERROR | indicates that the function was not successful; the LO-specification structure might be invalid. |
See the descriptions of the following functions: mi_lo_colinfo_by_ids(), mi_lo_colinfo_by_name(), mi_lo_spec_free(), mi_lo_spec_init(), mi_lo_specset_sbspace(), and mi_lo_stat_cspec().
For more information on the sbspace name of a smart large object, see Storage Characteristics. For information on how to use the mi_lo_specget_sbspace() function, see The LO-Specification Structure, and Defining User-Specified Storage Characteristics.