fsVarsRegisterNamedVar
The fsVarsRegisterNamedVar function can be used to create a new named variable.
Syntax
FsNamedVarId fsVarsRegisterNamedVar(
const char* name
);
Parameters
| Parameters | Description |
|---|---|
name |
The name of the new variable. |
Return Values
The function returns the right Id associated to the given name. If the given name has already been registered, the function will return the Id of the NamedVar. If an error occurred, the function will return -1.
Example
FsNamedVarId namedVarId = fsVarsRegisterNamedVar("TOTO");