Oracle Call Interface Programmer's Guide Release 2 (9.2) Part Number A96584-01 |
|
OCI Cartridge Functions, 2 of 43
Allocate N bytes of memory for the duration of the External Procedure.
dvoid * OCIExtProcAllocCallMemory ( OCIExtProcContext *with_context, size_t amount ); Parameters
The with_context pointer that is passed to the C External Procedure.
The number of bytes to allocate.
This call allocates amount
bytes of memory for the duration of the call of the external procedure.
Any memory allocated by this call is freed by PL/SQL upon return from the external procedure. The application must not use any kind of free()
function on memory allocated by OCIExtProcAllocCallMemory()
. Use this function to allocate memory for function returns.
A zero return value should be treated as an error
An untyped (opaque) Pointer to the allocated memory.
text *ptr = (text *)OCIExtProcAllocCallMemory(wctx, 1024)
|
Copyright © 1996, 2002 Oracle Corporation. All Rights Reserved. |
|