Allocates memory dynamically.
Important This Open Data Services function or macro is only supported in Microsoft® SQL Server™ version 7.0 for backward compatibility.
For more information about Open Data Services functions or macros supported for backward compatibility, see Open Data Services (Level 3).
void * srv_alloc ( DBINT size );
Specifies the number of bytes to allocate.
A pointer to the newly allocated space. If size bytes cannot be allocated, a null pointer is returned.
Use the srv_free function to free memory allocated by srv_alloc. The srv_alloc function is equivalent to the Microsoft Win32® GlobalAlloc function. Normal Win32 or C run-time memory management functions can be used in an Open Data Services application.