lrt_Fname

Buffer Manipulation Functions

Maps a field identifier to a field name.

char *lrt_Fname( FLDIDfieldid );

fieldid The field identifier.

The lrt_Fnamefunction provides a run-time translation of a field identifier to its field name.

Return Values

If the function succeeds, it returns a pointer to a character string containing the field name. If it fails, it returns NULL and sets Ferror to indicate the error condition.

Parameterization

You cannot use standard parameterization for any arguments in this function.

Example

In the following example, the lrt_Fname function specifies the field identifier 8302. The example for lrt_Fname32 is identical except for the function name.

Copy code
int rc;
lr_output_message("id is %s", lrt_Fname(8302));
lr_output_message("name is %d", lrt_Fldid("ACCOUNT_ID"));
lr_output_message("name is %d", lrt_Fldid("ACCOUNT_IDS"));
rc = lrt_getFerror();
lr_output_message("error code is %d", rc);
lr_output_message("error message is %s", lrt_Fstrerror(rc));