<!DOCTYPE File PUBLIC "-//Liam Quin//DTD C API Documentation v1.1//EN" "doc.dtd"><File>
<Entry dir="liblqutil">
<Function File="../../src/liblqutil/namespace.c">
<Name>LQU_SetNameTypeAndVariable</Name>
<Class>Utilities/Name Space
<Purpose>
Associates the given NameRef with the given Variable, first
changing the remembered type of the NameRef.
You should pass a pointer to the variable you want to use.
The variable itself should be static if there is any chance of
the Name within the NameSpace being used after the variable has
gone out of scope.
<Returns>
The given NameRef, possibly changed, is returned.
<Example>
static int MyToes = 10;
LQU_SetNameTypeAndVariable(NameRef, LQU_NameType_Integer, &MyToes);
</Example>
<SeeAlso>
LQU_SetNameVariable
</Function>
<Decl>
API t_NameRef
LQU_SetNameTypeAndVariable(theNameRef, theNameType, theVariable)
    t_NameRef theNameRef;
    t_NameType theNameType;
    void *theVariable;
</Decl>
</Entry>
