The IDL_VarName() function returns the name of a variable, constant, or expression given its address. If the item is a named variable, it must be in the currently active program unit:

char *IDL_VarName(IDL_VPTR v)