srv_alloc

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).

Syntax

void * srv_alloc ( DBINT size );

Arguments
size
Specifies the number of bytes to allocate.
Returns

A pointer to the newly allocated space. If size bytes cannot be allocated, a null pointer is returned.

Remarks

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.

See Also
srv_errhandle srv_getuserdata
srv_free  

  


(c) 1988-98 Microsoft Corporation. All Rights Reserved.