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

Function AS_GetKeywordIDForString

code/client/snd_ambient.cpp:234–247  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

232*/
233
234static int AS_GetKeywordIDForString( const char *name )
235{
236 //Make sure it's valid
237 if ( name == NULL || name[0] == '\0' )
238 return -1;
239
240 for ( int i = 0; i < NUM_AS_KEYWORDS; i++ )
241 {
242 if ( Q_stricmp( name, keywordNames[i] ) == 0 )
243 return i;
244 }
245
246 return -1;
247}
248
249/*
250-------------------------

Callers 4

AS_GetGeneralSetFunction · 0.70
AS_GetLocalSetFunction · 0.70
AS_GetBModelSetFunction · 0.70
AS_ParseHeaderFunction · 0.70

Calls 1

Q_stricmpFunction · 0.85

Tested by

no test coverage detected