Allocate memory for use in C component code.
void * JAG_PUBLIC JagAlloc( SQLINTEGER len );
The number of bytes to be allocated.
A pointer to newly allocated memory or NULL if the requested block of memory can not be allocated.
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.
Copyright © 2005. Sybase Inc. All rights reserved. |