MCPcopy Create free account
hub / github.com/JACoders/OpenJK / LibVarGetString

Function LibVarGetString

codemp/botlib/l_libvar.cpp:155–168  ·  view source on GitHub ↗

end of the function LibVarGet =========================================================================== Parameter: - Returns: - Changes Globals: - ===========================================================================

Source from the content-addressed store, hash-verified

153// Changes Globals: -
154//===========================================================================
155char *LibVarGetString(char *var_name)
156{
157 libvar_t *v;
158
159 v = LibVarGet(var_name);
160 if (v)
161 {
162 return v->string;
163 } //end if
164 else
165 {
166 return "";
167 } //end else
168} //end of the function LibVarGetString
169//===========================================================================
170//
171// Parameter: -

Callers 3

AAS_LoadAASFileFunction · 0.85
Export_BotLibSetupFunction · 0.85
Export_BotLibVarGetFunction · 0.85

Calls 1

LibVarGetFunction · 0.85

Tested by

no test coverage detected