INFORMIX
DataBlade API Programmer's Manual
Chapter 12: DataBlade API Function Descriptions
Home Contents Index Master Index New Book

mi_lo_filename()

The mi_lo_filename() function constructs a filename for smart-large-object data based on an LO handle and a filename specification.

Syntax

Usage

The mi_lo_filename() function generates a filename from the fname_spec argument that you provide. This function uses a template to specify the exact format of the result. Use the mi_lo_filename() function to determine the filename that the mi_lo_to_file() function would create for its fname_spec argument.

By default, the mi_lo_to_file() function generates a filename of the form:

However, you can specify wildcards in the fname_spec argument that can change this default filename. You can use these wildcards in the fname_spec argument of mi_lo_filename() to see what filename these wildcards generate. For more information on the wildcards that are valid in the fname_spec argument, see the description of the mi_lo_to_file() function on page 12-358.

You are responsible for freeing the memory that the return value occupies.

Tip: The mi_lo_filename() function replaces the mi_large_object_filename() function, which Informix supports for backward compatibility only. Use mi_lo_filename() for all new DataBlade routines.

Return Values

char *

The character string that is the filename that the mi_lo_to_file() function would generate.

NULL

The function was not successful.

Related Topics

See the description of the mi_lo_to_file() function.

In Chapter 3, "Handling Smart Large Objects," see "Using Operating-System Files".




DataBlade API Programmer's Manual, version 9.1
Copyright © 1998, Informix Software, Inc. All rights reserved.