DtvLong dal_fld_ret_ptr (idf, flg)

Returns the pointer to the buffer that can contain the field content (field buffer).

Input Parameters Significance
DtvLong idf field id
char flg storage function:
'A' = dal_mem_mal
'a' = malloc
'I' = dal_mem_cal
'i' = calloc

Output Parameers Significance
no -

Return Code Significance
value pointer to the buffer that can contain the field content
0 No more memory available; no field-Id; wrong storage function

When the storage functions 'a' and 'c' are used, the memory must be freed again using the <free> function. In case of 'A' and 'C' the memory is freed by calling <dal_mem_fre>, provided the function <dal_mem_set> was called before allocating. If <dal_mem_set> was not applied, the memory will be freed at the next jump into the event loop.

Options Initialisation Free memory
A no dal_mem_set, dal_mem_fre
a no free
I yes dal_mem_set, dal_mem_fre
i yes free