fsVarsRegisterLVar

The fsVarsRegisterLVar function can be used to get or create an LVar.

 

Syntax
FsLVarId fsVarsRegisterLVar(
    const char* name
);

 

Parameters
Parameters Description
name

The name of the new variable.

 

Return Values

The function returns the ID associated with the given variable name. If the given name has already been registered, the function will return the ID of the already existing LVar. If an error occurred, the function will return FS_VAR_INVALID_ID.

 

Example
FsLVarId lVarId = fsVarsRegisterLVar("TOTO");