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

mi_zalloc()

The mi_zalloc() function allocates and zero-fills a block of memory of the given size and returns a pointer to a block of memory of the specified size.

Syntax

Usage

The mi_zalloc() function behaves exactly like mi_alloc() except that mi_zalloc() fills the allocated block of memory with zeroes before the function returns the pointer to the memory.

Return Values

On success, returns a pointer to the newly allocated memory. On failure, returns NULL.

Related Topics

For additional information, see the descriptions of the following functions: mi_alloc() and mi_dalloc().




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