fsVarsGetLVarId

The fsVarsGetLVarId function can be used to get an existing LVar.

 

Syntax
FsLVarId fsVarsGetLVarId(
    const char* name
);

 

Parameters
Parameters Description
name

The name of the variable.

 

Return Values

The function returns the ID associated with the given name. If the given name has not been registered, the function will return FS_VAR_INVALID_ID. If an error occurred, the function will return FS_VAR_INVALID_ID.

 

Example
FsLVarId lVarId = fsVarsGetLVarId("TOTO"); // return FS_VAR_INVALID_ID if "TOTO" doesn't exists else its id