FNC_DefMem Function | C Library Functions | Teradata Vantage - 17.10 - FNC_DefMem - Advanced SQL Engine - Teradata Database

Teradata Vantageā„¢ - SQL External Routine Programming

Product
Advanced SQL Engine
Teradata Database
Release Number
17.10
Release Date
July 2021
Content Type
Programming Reference
Publication ID
B035-1147-171K
Language
English (United States)

Allocates the required memory for the aggregate intermediate storage structure defined by an aggregate UDF.

FNC_DefMem returns a pointer to the allocated memory.

If FNC_DefMem cannot allocate the memory, which usually only happens when the value of len is too big, a NULL pointer is returned.