lq-text: LQU_NameRefIsValid

API int LQU_NameRefIsValid (NameSpace, NameRef) t_NameSpace *NameSpace; t_NameRef NameRef;

Purpose

Determines whether the given NameRef is a valid reference to a name in the given NameSpace.

A NameRef is invalid if it is a NULL pointer, or if the Name to which it refers has been deleted from the NameSpace.

Returns

Non-zero if the NameRef is valid, and zero otherwise.

See Also:

Notes

This function does not check to see whether a NameRef has been corrupted; the given NameRef must either be NULL, or have previously been a valid NameRef in the given NameSpace.