Chapter 5 C Routines Reference


JagAlloc

Description

Allocate memory for use in C component code.

Syntax

void * JAG_PUBLIC JagAlloc(
        SQLINTEGER len
        );

Parameters

len

The number of bytes to be allocated.

Return Values

A pointer to newly allocated memory or NULL if the requested block of memory can not be allocated.

Usage

In C components, memory used to store output parameters for variable-length types (string and binary) must be allocated with JagAlloc.

Memory allocated with JagAlloc must be freed with JagFree.

In C++ components, use the standard CORBA memory allocation and deallocation routines.

See Also

JagFree

 


Copyright © 2001 Sybase, Inc. All rights reserved.