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

mi_get_string()

The mi_get_string() function copies a string value from a buffer, performing code-set conversion from client to server, if necessary.

Syntax

Usage

The mi_get_string() function is useful for implementing send and receive functions for user-defined data types when aligned values need to be read from possibly unaligned data buffers.

While other mi_get functions accept a preallocated buffer, mi_get_string() allocates memory for data to be copied, so a pointer to the address is passed.

The returned address is advanced by the size of an mi_string type to permit a subsequent copy.

Return Values

A new datap address.




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