Allocates memory for user exits to use.
Restriction: This topic applies only when the Enterprise Server feature is enabled.
Syntax:
typedef void *(*PFV_IDPES_FN_ALLOC_MEM)(cobuns32_t mem_size);
On Entry:
mem_size
|
Number of bytes to allocate
|
Function returns:
A pointer to the allocated space, or NULL if there is insufficient memory available or an error occurs during the allocation process.
Comments:
Used by user exits to allocate memory, for example, for the creation of a replacement external data value during exit point 7, External Data Value Modification - Output Parameter. If you allocate memory using this function you should subsequently free it using the fn_free_mem support function of IDP_EXIT_SERVICE_FUNCS.